diff options
author | Jules Irenge <jbi.octave@gmail.com> | 2024-05-01 00:47:45 +0200 |
---|---|---|
committer | Leon Romanovsky <leon@kernel.org> | 2024-05-05 14:12:35 +0200 |
commit | 48d80b484491f177c586874c480cf9ba3af82b4f (patch) | |
tree | 184a6b31886840a119ca55a715737aa2c5730d4f /drivers/nvmem/rave-sp-eeprom.c | |
parent | RDMA/ipoib: Remove NULL check before dev_{put, hold} (diff) | |
download | linux-48d80b484491f177c586874c480cf9ba3af82b4f.tar.xz linux-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 <jbi.octave@gmail.com>
Link: https://lore.kernel.org/r/ZjF1Eedxwhn4JSkz@octinomon.home
Signed-off-by: Leon Romanovsky <leon@kernel.org>
Diffstat (limited to 'drivers/nvmem/rave-sp-eeprom.c')
0 files changed, 0 insertions, 0 deletions