diff options
| author | Jules Irenge <[email protected]> | 2024-04-30 22:47:45 +0000 |
|---|---|---|
| committer | Leon Romanovsky <[email protected]> | 2024-05-05 12:12:35 +0000 |
| commit | 48d80b484491f177c586874c480cf9ba3af82b4f (patch) | |
| tree | 184a6b31886840a119ca55a715737aa2c5730d4f /drivers/infiniband/hw/mana/main.c | |
| parent | RDMA/ipoib: Remove NULL check before dev_{put, hold} (diff) | |
| download | kernel-48d80b484491f177c586874c480cf9ba3af82b4f.tar.gz kernel-48d80b484491f177c586874c480cf9ba3af82b4f.zip | |
RDMA/core: Remove NULL check before dev_{put, hold}
Coccinelle reports a warning
WARNING: NULL check before dev_{put, hold} functions is not needed
The reason is the call netdev_{put, hold} of dev_{put,hold} will check NULL
There is no need to check before using dev_{put, hold}
Signed-off-by: Jules Irenge <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Leon Romanovsky <[email protected]>
Diffstat (limited to 'drivers/infiniband/hw/mana/main.c')
0 files changed, 0 insertions, 0 deletions
