aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/stackcollapse.py
diff options
context:
space:
mode:
authorGuenter Roeck <[email protected]>2021-05-09 21:12:11 -0700
committerMartin K. Petersen <[email protected]>2021-05-14 22:40:54 -0400
commit09c65383970e79db0322962efc9e56a0785580f3 (patch)
tree1c068c9931125a460bef311d190b101fc8a2cc5b /tools/perf/scripts/python/stackcollapse.py
parent998da772fd86bd4ba2ba8c0ac2c9bba4815a952d (diff)
scsi: qedf: 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, which is not the case here. The NULL checks are therefore unnecessary and misleading. Remove them. The changes in this patch were made automatically using the following Coccinelle script. @@ type t; identifier v; statement s; @@ <+... ( t v = container_of(...); | v = container_of(...); ) ... when != v - if (\( !v \| v == NULL \) ) s ...+> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Guenter Roeck <[email protected]> Signed-off-by: Martin K. Petersen <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/stackcollapse.py')
0 files changed, 0 insertions, 0 deletions