diff options
author | Jules Irenge <jbi.octave@gmail.com> | 2024-04-30 23:47:45 +0100 |
---|---|---|
committer | Leon Romanovsky <leon@kernel.org> | 2024-05-05 15:12:35 +0300 |
commit | 48d80b484491f177c586874c480cf9ba3af82b4f (patch) | |
tree | 184a6b31886840a119ca55a715737aa2c5730d4f /drivers/devfreq | |
parent | e4e40a87024c502dcca279504a4550e617eea037 (diff) | |
download | linux-48d80b484491f177c586874c480cf9ba3af82b4f.tar.gz linux-48d80b484491f177c586874c480cf9ba3af82b4f.tar.bz2 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/devfreq')
0 files changed, 0 insertions, 0 deletions