RDMA/hns: Fix hns_roce_table_get return value
authorChengchang Tang <tangchengchang@huawei.com>
Tue, 23 May 2023 12:16:40 +0000 (20:16 +0800)
committerJason Gunthorpe <jgg@nvidia.com>
Thu, 1 Jun 2023 22:58:47 +0000 (19:58 -0300)
commitcf5b608fb0e369c473a8303cad6ddb386505e5b8
tree04091e25858c72eb54eb4e26649ede0aca1f4c27
parentb9989ab3f61ec459cbaf0a492fea3168bbfa4c7a
RDMA/hns: Fix hns_roce_table_get return value

The return value of set_hem has been fixed to ENODEV, which will lead a
diagnostic information missing.

Fixes: 9a4435375cd1 ("IB/hns: Add driver files for hns RoCE driver")
Link: https://lore.kernel.org/r/20230523121641.3132102-3-huangjunxian6@hisilicon.com
Signed-off-by: Chengchang Tang <tangchengchang@huawei.com>
Signed-off-by: Junxian Huang <huangjunxian6@hisilicon.com>
Signed-off-by: Jason Gunthorpe <jgg@nvidia.com>
drivers/infiniband/hw/hns/hns_roce_hem.c