aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/infiniband/hw/hns/hns_roce_mr.c
diff options
context:
space:
mode:
authorLang Cheng <chenglang@huawei.com>2019-08-08 22:53:46 +0800
committerDoug Ledford <dledford@redhat.com>2019-08-12 10:45:08 -0400
commit6def7de6d450893852802794ab44d8053672cf88 (patch)
tree42d292955b6c9325f9ce64d6b7b2d89796d15da6 /drivers/infiniband/hw/hns/hns_roce_mr.c
parentRDMA/hns: Clean up unnecessary initial assignment (diff)
downloadlinux-dev-6def7de6d450893852802794ab44d8053672cf88.tar.xz
linux-dev-6def7de6d450893852802794ab44d8053672cf88.zip
RDMA/hns: Update some comments style
Here removes some useless comments and adds necessary spaces to another comments. Signed-off-by: Lang Cheng <chenglang@huawei.com> Link: https://lore.kernel.org/r/1565276034-97329-7-git-send-email-oulijun@huawei.com Signed-off-by: Doug Ledford <dledford@redhat.com>
Diffstat (limited to '')
-rw-r--r--drivers/infiniband/hw/hns/hns_roce_mr.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/drivers/infiniband/hw/hns/hns_roce_mr.c b/drivers/infiniband/hw/hns/hns_roce_mr.c
index 0cfa94605f77..8157679021b9 100644
--- a/drivers/infiniband/hw/hns/hns_roce_mr.c
+++ b/drivers/infiniband/hw/hns/hns_roce_mr.c
@@ -517,7 +517,6 @@ static int hns_roce_mhop_alloc(struct hns_roce_dev *hr_dev, int npages,
if (mhop_num == HNS_ROCE_HOP_NUM_0)
return 0;
- /* hop_num = 1 */
if (mhop_num == 1)
return pbl_1hop_alloc(hr_dev, npages, mr, pbl_bt_sz);