summaryrefslogtreecommitdiff
path: root/drivers/infiniband/sw/siw/siw_main.c
diff options
context:
space:
mode:
authorYang Li <yang.lee@linux.alibaba.com>2023-03-31 09:06:33 +0800
committerLeon Romanovsky <leon@kernel.org>2023-04-03 15:48:17 +0300
commit08ebf57f6e1d73cc1890e1ff1b1c74887c53770b (patch)
treeafdc77e24efde31060afee613009c797010ebf75 /drivers/infiniband/sw/siw/siw_main.c
parente7706c4bbfe88fe5bc9b8a6b1b5a84a5d58e2f7e (diff)
RDMA/cma: Remove NULL check before dev_{put, hold}
The call netdev_{put, hold} of dev_{put, hold} will check NULL, so there is no need to check before using dev_{put, hold}, remove it to silence the warnings: ./drivers/infiniband/core/cma.c:713:2-9: WARNING: NULL check before dev_{put, hold} functions is not needed. ./drivers/infiniband/core/cma.c:2433:2-9: WARNING: NULL check before dev_{put, hold} functions is not needed. Reported-by: Abaci Robot <abaci@linux.alibaba.com> Link: https://bugzilla.openanolis.cn/show_bug.cgi?id=4668 Signed-off-by: Yang Li <yang.lee@linux.alibaba.com> Link: https://lore.kernel.org/r/20230331010633.63261-1-yang.lee@linux.alibaba.com Signed-off-by: Leon Romanovsky <leon@kernel.org>
Diffstat (limited to 'drivers/infiniband/sw/siw/siw_main.c')
0 files changed, 0 insertions, 0 deletions