summaryrefslogtreecommitdiffstats
path: root/drivers/infiniband/hw/hns
diff options
context:
space:
mode:
authorNatalia Petrova <n.petrova@fintech.ru>2023-03-03 15:44:08 +0300
committerLeon Romanovsky <leon@kernel.org>2023-03-14 11:57:01 +0200
commitb73a0b80c69de77d8d4942abb37066531c0169b2 (patch)
tree1a9dc214c0d22486b66b230070319e39341d0bb1 /drivers/infiniband/hw/hns
parentf2f6e1661d38fbce6163fc321395e9de24a9529b (diff)
downloadlinux-b73a0b80c69de77d8d4942abb37066531c0169b2.tar.gz
linux-b73a0b80c69de77d8d4942abb37066531c0169b2.tar.bz2
linux-b73a0b80c69de77d8d4942abb37066531c0169b2.zip
RDMA/rdmavt: Delete unnecessary NULL check
There is no need to check 'rdi->qp_dev' for NULL. The field 'qp_dev' is created in rvt_register_device() which will fail if the 'qp_dev' allocation fails in rvt_driver_qp_init(). Overwise this pointer doesn't changed and passed to rvt_qp_exit() by the next step. Found by Linux Verification Center (linuxtesting.org) with SVACE. Fixes: 0acb0cc7ecc1 ("IB/rdmavt: Initialize and teardown of qpn table") Signed-off-by: Natalia Petrova <n.petrova@fintech.ru> Link: https://lore.kernel.org/r/20230303124408.16685-1-n.petrova@fintech.ru Signed-off-by: Leon Romanovsky <leon@kernel.org>
Diffstat (limited to 'drivers/infiniband/hw/hns')
0 files changed, 0 insertions, 0 deletions