aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/infiniband/core
diff options
context:
space:
mode:
authorChristophe Jaillet <christophe.jaillet@wanadoo.fr>2017-01-27 14:15:35 +0100
committerDoug Ledford <dledford@redhat.com>2017-01-27 14:29:20 -0500
commita3dd3a48a5f6ce433e06863d311dfdd57a26bf67 (patch)
treed4d3709f890d0cbbb6d34918488e7bc897a02f3f /drivers/infiniband/core
parentIB/ipoib: Remove the unnecessary error check (diff)
downloadlinux-dev-a3dd3a48a5f6ce433e06863d311dfdd57a26bf67.tar.xz
linux-dev-a3dd3a48a5f6ce433e06863d311dfdd57a26bf67.zip
IB/cma: Fix reversed test
This test looks reverted. We should log an error message only if 'ib_attach_mcast()' fails. Signed-off-by: Christophe JAILLET <christophe.jaillet@wanadoo.fr> Signed-off-by: Doug Ledford <dledford@redhat.com>
Diffstat (limited to 'drivers/infiniband/core')
-rw-r--r--drivers/infiniband/core/cma.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/infiniband/core/cma.c b/drivers/infiniband/core/cma.c
index f9133c7606a8..7cb01a9463da 100644
--- a/drivers/infiniband/core/cma.c
+++ b/drivers/infiniband/core/cma.c
@@ -3837,7 +3837,7 @@ static int cma_ib_mc_handler(int status, struct ib_sa_multicast *multicast)
if (!status && id_priv->id.qp) {
status = ib_attach_mcast(id_priv->id.qp, &multicast->rec.mgid,
be16_to_cpu(multicast->rec.mlid));
- if (!status)
+ if (status)
pr_debug_ratelimited("RDMA CM: MULTICAST_ERROR: failed to attach QP. status %d\n",
status);
}