Skip to content

Commit ab5cbb9

Browse files
Weihang Lijgunthorpe
authored andcommitted
RDMA/hns: Remove RST2RST error prints for hw v1
There is no need to prints error for hw_v1. Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Weihang Li <[email protected]> Signed-off-by: Wenpeng Liang <[email protected]> Signed-off-by: Jason Gunthorpe <[email protected]>
1 parent fe164fc commit ab5cbb9

File tree

1 file changed

+1
-10
lines changed

1 file changed

+1
-10
lines changed

drivers/infiniband/hw/hns/hns_roce_qp.c

Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1302,17 +1302,8 @@ int hns_roce_modify_qp(struct ib_qp *ibqp, struct ib_qp_attr *attr,
13021302
if (ret)
13031303
goto out;
13041304

1305-
if (cur_state == new_state && cur_state == IB_QPS_RESET) {
1306-
if (hr_dev->hw_rev == HNS_ROCE_HW_VER1) {
1307-
ret = -EPERM;
1308-
ibdev_err(&hr_dev->ib_dev,
1309-
"RST2RST state is not supported\n");
1310-
} else {
1311-
ret = 0;
1312-
}
1313-
1305+
if (cur_state == new_state && cur_state == IB_QPS_RESET)
13141306
goto out;
1315-
}
13161307

13171308
ret = hr_dev->hw->modify_qp(ibqp, attr, attr_mask, cur_state,
13181309
new_state);

0 commit comments

Comments
 (0)