RDMA/hns: Replacing magic number with macros in apply_func_caps()
authorYixing Liu <liuyixing1@huawei.com>
Thu, 22 Sep 2022 12:33:14 +0000 (20:33 +0800)
committerJason Gunthorpe <jgg@nvidia.com>
Tue, 27 Sep 2022 13:15:25 +0000 (10:15 -0300)
commit8c581c47b9ba064cc3c3ad399081c202b0b0bf78
tree31e8a1d726f31522b0c5da51262c1e06f5043fae
parent3b1f864c904915b3baebffb31ea05ee704b0df3c
RDMA/hns: Replacing magic number with macros in apply_func_caps()

Replacing magic number with macros in function apply_func_caps().

Link: https://lore.kernel.org/r/20220922123315.3732205-12-xuhaoyue1@hisilicon.com
Signed-off-by: Yixing Liu <liuyixing1@huawei.com>
Signed-off-by: Haoyue Xu <xuhaoyue1@hisilicon.com>
Signed-off-by: Jason Gunthorpe <jgg@nvidia.com>
drivers/infiniband/hw/hns/hns_roce_hw_v2.c