RDMA/qedr: Return success when not changing QP state
authorRam Amrani <Ram.Amrani@Cavium.com>
Tue, 24 Jan 2017 11:50:34 +0000 (13:50 +0200)
committerDoug Ledford <dledford@redhat.com>
Tue, 24 Jan 2017 20:34:36 +0000 (15:34 -0500)
commit865cea40b69741c3da2574176876463233b2b67c
treed9350d5ff8ac8b97150019857ac3c6298f026d66
parent20f5e10ef8bcf29a915642245b66e5a132e38fc4
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>
drivers/infiniband/hw/qedr/verbs.c