Message ID | 1389307663-11296-16-git-send-email-umalhi@cisco.com (mailing list archive) |
---|---|
State | Accepted, archived |
Headers | show |
diff --git a/drivers/infiniband/hw/usnic/usnic_ib_main.c b/drivers/infiniband/hw/usnic/usnic_ib_main.c index bbe614b..dc09c12 100644 --- a/drivers/infiniband/hw/usnic/usnic_ib_main.c +++ b/drivers/infiniband/hw/usnic/usnic_ib_main.c @@ -115,7 +115,7 @@ static void usnic_ib_qp_grp_modify_active_to_err(struct usnic_ib_dev *us_ibdev) status = usnic_ib_qp_grp_modify(qp_grp, IB_QPS_ERR, NULL); - if (!status) { + if (status) { usnic_err("Failed to transistion qp grp %u from %s to %s\n", qp_grp->grp_id, usnic_ib_qp_grp_state_to_string
usNIC is falsing printing an error if usnic_ib_qp_grp_modify succeeds. Signed-off-by: Upinder Malhi <umalhi@cisco.com> --- drivers/infiniband/hw/usnic/usnic_ib_main.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)