]> git.baikalelectronics.ru Git - kernel.git/commit
RDMA: remove useless condition in siw_create_cq()
authorAndrey Strachuk <strochuk@ispras.ru>
Mon, 11 Jul 2022 15:12:51 +0000 (18:12 +0300)
committerLeon Romanovsky <leonro@nvidia.com>
Mon, 18 Jul 2022 09:27:28 +0000 (12:27 +0300)
commitdb79b0bc02bf5bbfe950481144cc8c8674c11fc3
tree2d733a4a2ffa00cd95799da88bf2a93d21385208
parent8bd114ee1645ab00bb65d11f4e00cd976873e65a
RDMA: remove useless condition in siw_create_cq()

Comparison of 'cq' with NULL is useless since
'cq' is a result of container_of and cannot be NULL
in any reasonable scenario.

Found by Linux Verification Center (linuxtesting.org) with SVACE.

Fixes: 7c742f9fee7e ("rdma/siw: application interface")
Link: https://lore.kernel.org/r/20220711151251.17089-1-strochuk@ispras.ru
Signed-off-by: Andrey Strachuk <strochuk@ispras.ru>
Acked-by: Bernard Metzler <bmt@zurich.ibm.com>
Signed-off-by: Leon Romanovsky <leon@kernel.org>
drivers/infiniband/sw/siw/siw_verbs.c