RDMA/hns: Repacing 'dseg_len' by macros in fill_ext_sge_inl_data()
authorLuoyouming <luoyouming@huawei.com>
Thu, 22 Sep 2022 12:33:13 +0000 (20:33 +0800)
committerJason Gunthorpe <jgg@nvidia.com>
Tue, 27 Sep 2022 13:15:25 +0000 (10:15 -0300)
commit3b1f864c904915b3baebffb31ea05ee704b0df3c
tree0e5f1f5a94648241b8df43cf3226978f8e49c01d
parent6649b4a1c43c6ad153c3ff0c1754a436aa6b6390
RDMA/hns: Repacing 'dseg_len' by macros in fill_ext_sge_inl_data()

The sge size is known to be constant, so it's unnecessary to use sizeof to
calculate.

Link: https://lore.kernel.org/r/20220922123315.3732205-11-xuhaoyue1@hisilicon.com
Signed-off-by: Luoyouming <luoyouming@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