RDMA/hns: Replace magic numbers with #defines
authorLijun Ou <oulijun@huawei.com>
Fri, 24 May 2019 15:29:36 +0000 (23:29 +0800)
committerJason Gunthorpe <jgg@mellanox.com>
Mon, 27 May 2019 20:31:00 +0000 (17:31 -0300)
commit2a3d923f87303b2d49c6cfb7bf6a25144a1ce265
treeafc0ba5f4bd8b816ffbfdea640b941bd88aa2980
parent669cefb654cb69b280e31380f5fc7e3b5755b0cd
RDMA/hns: Replace magic numbers with #defines

This patch makes the code more readable by removing magic numbers.

Signed-off-by: Xi Wang <wangxi11@huawei.com>
Signed-off-by: Lijun Ou <oulijun@huawei.com>
Signed-off-by: Jason Gunthorpe <jgg@mellanox.com>
drivers/infiniband/hw/hns/hns_roce_db.c
drivers/infiniband/hw/hns/hns_roce_device.h
drivers/infiniband/hw/hns/hns_roce_hem.c
drivers/infiniband/hw/hns/hns_roce_hw_v1.c
drivers/infiniband/hw/hns/hns_roce_hw_v2.c
drivers/infiniband/hw/hns/hns_roce_hw_v2.h
drivers/infiniband/hw/hns/hns_roce_main.c
drivers/infiniband/hw/hns/hns_roce_mr.c