aboutsummaryrefslogtreecommitdiffstats
path: root/tools/perf/scripts/python/bin
diff options
context:
space:
mode:
authorGuenter Roeck <linux@roeck-us.net>2021-05-14 08:36:06 -0700
committerJason Gunthorpe <jgg@nvidia.com>2021-05-20 12:01:00 -0300
commit6dc760027d29364aab77e3c57f0e04a4e82476e9 (patch)
tree90f37fe915ac235353e992fdef89aa56d00c2b30 /tools/perf/scripts/python/bin
parentRDMA/rxe: Remove unused parameter udata (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/20210514153606.1377119-1-linux@roeck-us.net Signed-off-by: Guenter Roeck <linux@roeck-us.net> Signed-off-by: Jason Gunthorpe <jgg@nvidia.com>
Diffstat (limited to 'tools/perf/scripts/python/bin')
0 files changed, 0 insertions, 0 deletions