diff options
author | Jules Irenge <jbi.octave@gmail.com> | 2024-05-01 00:47:33 +0100 |
---|---|---|
committer | Leon Romanovsky <leon@kernel.org> | 2024-05-02 17:46:38 +0300 |
commit | e4e40a87024c502dcca279504a4550e617eea037 (patch) | |
tree | 9f0a36d9711244e633df5f68a6ce527a213574c5 /crypto | |
parent | 82e966130ddd67539ab904f2038e7bf5d4a66247 (diff) | |
download | lwn-e4e40a87024c502dcca279504a4550e617eea037.tar.gz lwn-e4e40a87024c502dcca279504a4550e617eea037.zip |
RDMA/ipoib: 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/ZjGDFatHRMI6Eg7M@octinomon.home
Signed-off-by: Leon Romanovsky <leon@kernel.org>
Diffstat (limited to 'crypto')
0 files changed, 0 insertions, 0 deletions