Skip to content
Commit 48d80b48 authored by Jules Irenge's avatar Jules Irenge Committed by Leon Romanovsky
Browse files

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: default avatarJules Irenge <jbi.octave@gmail.com>
Link: https://lore.kernel.org/r/ZjF1Eedxwhn4JSkz@octinomon.home


Signed-off-by: default avatarLeon Romanovsky <leon@kernel.org>
parent e4e40a87
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment