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

RDMA/mlx5: 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/ZjGC4qXrOwZE0aHi@octinomon.home


Signed-off-by: default avatarLeon Romanovsky <leon@kernel.org>
parent fd3af5e2
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