]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitc81fc945af5ccfec0dd7e8ee14d88351fc49513b
tree0e5f1f5a94648241b8df43cf3226978f8e49c01d
parent8df04a132c42ec773e6bba6d55555da9a408a946
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