]> git.proxmox.com Git - mirror_ubuntu-hirsute-kernel.git/commit
IB/hns: Simplify function of pd alloc and qp alloc
authorLijun Ou <oulijun@huawei.com>
Tue, 20 Sep 2016 16:06:57 +0000 (17:06 +0100)
committerDoug Ledford <dledford@redhat.com>
Mon, 3 Oct 2016 15:43:15 +0000 (11:43 -0400)
commita598c6f4c5a838f3141a739aa0f6799c5bf0afa9
tree6fe054b42bc13dcf7a988854e52f32ceb2e250f2
parented3e6d01138eb26634abb519bc66e0b0dc473d0e
IB/hns: Simplify function of pd alloc and qp alloc

Hns_roce_pd_alloc and hns_roce_reserve_range_qp use unnecessary
transformation of parameters. This patch simplify these two
functions.

Signed-off-by: Lijun Ou <oulijun@huawei.com>
Signed-off-by: Dongdong Huang(Donald) <hdd.huang@huawei.com>
Reviewed-by: Wei Hu <xavier.huwei@huawei.com>
Signed-off-by: Salil Mehta <salil.mehta@huawei.com>
Signed-off-by: Doug Ledford <dledford@redhat.com>
drivers/infiniband/hw/hns/hns_roce_pd.c
drivers/infiniband/hw/hns/hns_roce_qp.c