summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/gecko.py
diff options
context:
space:
mode:
authorDouglas Anderson <dianders@chromium.org>2024-10-14 19:36:10 +0300
committerDmitry Baryshkov <dmitry.baryshkov@linaro.org>2024-10-27 04:46:51 +0300
commit74c374648ed08efb2ef339656f2764c28c046956 (patch)
treed9af5b07323d73449cc46ca11d3e5a0683a4638a /tools/perf/scripts/python/gecko.py
parent2261751d5f2233a7a5d4791d6d13a0271e838ca5 (diff)
downloadlinux-74c374648ed08efb2ef339656f2764c28c046956.tar.xz
drm/msm: Simplify NULL checking in msm_disp_state_dump_regs()
The msm_disp_state_dump_regs(): - Doesn't allocate if the caller already allocated. ...but there's one caller and it doesn't allocate so we don't need this check. - Checks for allocation failure over and over even though it could just do it once right after the allocation. Clean this up. Signed-off-by: Douglas Anderson <dianders@chromium.org> Reviewed-by: Abhinav Kumar <quic_abhinavk@quicinc.com> Patchwork: https://patchwork.freedesktop.org/patch/619660/ Link: https://lore.kernel.org/r/20241014093605.3.I66049c2c17bd82767661f0ecd741b20453da02b2@changeid Signed-off-by: Dmitry Baryshkov <dmitry.baryshkov@linaro.org>
Diffstat (limited to 'tools/perf/scripts/python/gecko.py')
0 files changed, 0 insertions, 0 deletions