summaryrefslogtreecommitdiffstats
path: root/drivers/infiniband
diff options
context:
space:
mode:
authorRam Amrani <Ram.Amrani@Cavium.com>2017-01-24 12:50:34 +0100
committerDoug Ledford <dledford@redhat.com>2017-01-24 21:34:36 +0100
commit865cea40b69741c3da2574176876463233b2b67c (patch)
treed9350d5ff8ac8b97150019857ac3c6298f026d66 /drivers/infiniband
parentRDMA/qedr: Add uapi header qedr-abi.h (diff)
downloadlinux-865cea40b69741c3da2574176876463233b2b67c.tar.xz
linux-865cea40b69741c3da2574176876463233b2b67c.zip
RDMA/qedr: Return success when not changing QP state
If the user is requesting us to change the QP state to the same state that it is already in, return success instead of failure. Signed-off-by: Ram Amrani <Ram.Amrani@cavium.com> Signed-off-by: Michal Kalderon <Michal.Kalderon@cavium.com> Signed-off-by: Doug Ledford <dledford@redhat.com>
Diffstat (limited to 'drivers/infiniband')
-rw-r--r--drivers/infiniband/hw/qedr/verbs.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/infiniband/hw/qedr/verbs.c b/drivers/infiniband/hw/qedr/verbs.c
index 84dcd73bd57b..27d90a82d731 100644
--- a/drivers/infiniband/hw/qedr/verbs.c
+++ b/drivers/infiniband/hw/qedr/verbs.c
@@ -1657,7 +1657,7 @@ static int qedr_update_qp_state(struct qedr_dev *dev,
int status = 0;
if (new_state == qp->state)
- return 1;
+ return 0;
switch (qp->state) {
case QED_ROCE_QP_STATE_RESET: