diff options
author | Yang Li <[email protected]> | 2023-03-31 09:06:33 +0800 |
---|---|---|
committer | Leon Romanovsky <[email protected]> | 2023-04-03 15:48:17 +0300 |
commit | 08ebf57f6e1d73cc1890e1ff1b1c74887c53770b (patch) | |
tree | afdc77e24efde31060afee613009c797010ebf75 /tools/perf/scripts/python/sched-migration.py | |
parent | e7706c4bbfe88fe5bc9b8a6b1b5a84a5d58e2f7e (diff) |
RDMA/cma: Remove NULL check before dev_{put, hold}
The call netdev_{put, hold} of dev_{put, hold} will check NULL,
so there is no need to check before using dev_{put, hold},
remove it to silence the warnings:
./drivers/infiniband/core/cma.c:713:2-9: WARNING: NULL check before dev_{put, hold} functions is not needed.
./drivers/infiniband/core/cma.c:2433:2-9: WARNING: NULL check before dev_{put, hold} functions is not needed.
Reported-by: Abaci Robot <[email protected]>
Link: https://bugzilla.openanolis.cn/show_bug.cgi?id=4668
Signed-off-by: Yang Li <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Leon Romanovsky <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/sched-migration.py')
0 files changed, 0 insertions, 0 deletions