diff options
author | Jules Irenge <jbi.octave@gmail.com> | 2024-05-01 01:46:42 +0200 |
---|---|---|
committer | Leon Romanovsky <leon@kernel.org> | 2024-05-02 16:45:59 +0200 |
commit | 82e966130ddd67539ab904f2038e7bf5d4a66247 (patch) | |
tree | 6a3ffdf4202ce1f652238465f27ab48c5fe44f84 /drivers/dma | |
parent | RDMA/mlx5: Track DCT, DCI and REG_UMR QPs as diver_detail resources. (diff) | |
download | linux-82e966130ddd67539ab904f2038e7bf5d4a66247.tar.xz linux-82e966130ddd67539ab904f2038e7bf5d4a66247.zip |
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: Jules Irenge <jbi.octave@gmail.com>
Link: https://lore.kernel.org/r/ZjGC4qXrOwZE0aHi@octinomon.home
Signed-off-by: Leon Romanovsky <leon@kernel.org>
Diffstat (limited to 'drivers/dma')
0 files changed, 0 insertions, 0 deletions