RDMA/hns: Remove unnecessary checks for NULL in mtr_alloc_bufs()
authorChengchang Tang <tangchengchang@huawei.com>
Thu, 7 Dec 2023 11:42:30 +0000 (19:42 +0800)
committerLeon Romanovsky <leon@kernel.org>
Thu, 7 Dec 2023 13:09:16 +0000 (15:09 +0200)
commitf31683a5227b1a0febae8e2a85d7fdf9514c10f1
tree5715113ae35968723e1709cba3f4531ac29bed49
parent7243396aaf12385ba514764b6401bcd15e1a52c7
RDMA/hns: Remove unnecessary checks for NULL in mtr_alloc_bufs()

ib_umem_get() never return NULL.

Fixes: 3c873161a0d7 ("RDMA/hns: Add support for addressing when hopnum is 0")
Signed-off-by: Chengchang Tang <tangchengchang@huawei.com>
Signed-off-by: Junxian Huang <huangjunxian6@hisilicon.com>
Link: https://lore.kernel.org/r/20231207114231.2872104-5-huangjunxian6@hisilicon.com
Signed-off-by: Leon Romanovsky <leon@kernel.org>
drivers/infiniband/hw/hns/hns_roce_mr.c