summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/exported-sql-viewer.py
diff options
context:
space:
mode:
authorGuenter Roeck <linux@roeck-us.net>2021-05-25 06:20:33 +0300
committerRob Clark <robdclark@chromium.org>2021-06-23 17:33:53 +0300
commit5ed7944dfa508cce927870fecf370bad778b7910 (patch)
tree09e38d007ba0932f7ab725dca2bd199b7c335bf7 /tools/perf/scripts/python/exported-sql-viewer.py
parent08b2a9bb54aef2231d14493d6b7d2175fbd8c60b (diff)
downloadlinux-5ed7944dfa508cce927870fecf370bad778b7910.tar.xz
drm/msm/dp: Drop unnecessary NULL checks after container_of
The result of container_of() operations is never NULL unless the embedded element is the first element of the structure. This is not the case here. The NULL check on the result of container_of() is therefore unnecessary and misleading. Remove it. This change was made automatically with the following Coccinelle script. @@ type t; identifier v; statement s; @@ <+... ( t v = container_of(...); | v = container_of(...); ) ... when != v - if (\( !v \| v == NULL \) ) s ...+> While at it, remove unused but assigned variable hpd in dp_display_usbpd_attention_cb(). Signed-off-by: Guenter Roeck <linux@roeck-us.net> Link: https://lore.kernel.org/r/20210525032033.453143-1-linux@roeck-us.net Reviewed-by: Abhinav Kumar <abhinavk@codeaurora.org> Signed-off-by: Dmitry Baryshkov <dmitry.baryshkov@linaro.org> Signed-off-by: Rob Clark <robdclark@chromium.org>
Diffstat (limited to 'tools/perf/scripts/python/exported-sql-viewer.py')
0 files changed, 0 insertions, 0 deletions