IB/hns: Fix for removal of redundant code
authorSalil <salil.mehta@huawei.com>
Tue, 20 Sep 2016 16:07:12 +0000 (17:07 +0100)
committerDoug Ledford <dledford@redhat.com>
Mon, 3 Oct 2016 15:43:15 +0000 (11:43 -0400)
commit1bdab400af5954932714e68ab3df0187a92916cb
treeda772c52382d8e463c2493ad048c234fe3b39e7e
parentdeb17f6f826708e46af538048b2af508215c3dc5
IB/hns: Fix for removal of redundant code

This patch removes the redundant code lines present in the
functions get_send_wqe() and get_recv_wqe(). This also fixes
the error in calculating the SQ WQE.

Signed-off-by: Lijun Ou <oulijun@huawei.com>
Reviewed-by: Wei Hu (Xavier) <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_hw_v1.c
drivers/infiniband/hw/hns/hns_roce_qp.c