aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/exported-sql-viewer.py
diff options
context:
space:
mode:
authorGuenter Roeck <[email protected]>2021-05-25 04:29:04 -0700
committerRob Clark <[email protected]>2021-06-23 07:33:53 -0700
commit9389a0e7b17c7d781ef77003138f0c82f5a0aa4c (patch)
tree4edf750316d3b3176f68fd4c4db0202548622e31 /tools/perf/scripts/python/exported-sql-viewer.py
parent5ed7944dfa508cce927870fecf370bad778b7910 (diff)
drm/msm/dpu: Drop unnecessary NULL checks after container_of in dpu_encoder
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 checks on the result of container_of() are therefore unnecessary and misleading. Remove them. 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 ...+> Signed-off-by: Guenter Roeck <[email protected]> Link: https://lore.kernel.org/r/[email protected] Reviewed-by: Dmitry Baryshkov <[email protected]> [DB: fixed patch subject] Signed-off-by: Dmitry Baryshkov <[email protected]> Signed-off-by: Rob Clark <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/exported-sql-viewer.py')
0 files changed, 0 insertions, 0 deletions