RDMA/hns: Use a separated function for setting extend sge paramters
authorLijun Ou <oulijun@huawei.com>
Mon, 8 Jul 2019 13:41:20 +0000 (21:41 +0800)
committerJason Gunthorpe <jgg@mellanox.com>
Thu, 25 Jul 2019 15:23:10 +0000 (12:23 -0300)
commit947441eadb909b031fc0793d049e1af0d5855a21
tree9501cb44a1b76891e4e2e892a3309841b1c463d3
parent606bf89e98efb1174891c4d96afd39c1a974ce3d
RDMA/hns: Use a separated function for setting extend sge paramters

Moves the related lines of setting extended sge size into a separate
function as well as remove the unused variables.

Link: https://lore.kernel.org/r/1562593285-8037-5-git-send-email-oulijun@huawei.com
Signed-off-by: Lijun Ou <oulijun@huawei.com>
Signed-off-by: Jason Gunthorpe <jgg@mellanox.com>
drivers/infiniband/hw/hns/hns_roce_device.h
drivers/infiniband/hw/hns/hns_roce_qp.c