aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/export-to-postgresql.py
diff options
context:
space:
mode:
authorGuenter Roeck <[email protected]>2021-05-14 08:36:06 -0700
committerJason Gunthorpe <[email protected]>2021-05-20 12:01:00 -0300
commit6dc760027d29364aab77e3c57f0e04a4e82476e9 (patch)
tree90f37fe915ac235353e992fdef89aa56d00c2b30 /tools/perf/scripts/python/export-to-postgresql.py
parentcd5b010ffff2652cf6b153d9e796f4e3b90aebb6 (diff)
RDMA/bnxt_re: Drop unnecessary NULL checks after container_of
The result of container_of() operations is never NULL unless the first element of the embedding structure is extracted. This is either not the case here, or the pointer passed to container_of() is known to be not NULL. The NULL checks are therefore unnecessary and misleading. Remove them. The channges in this patch were 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 ...+> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Guenter Roeck <[email protected]> Signed-off-by: Jason Gunthorpe <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions