ib_srpt: fix a WARN_ON() message
authorDan Carpenter <dan.carpenter@oracle.com>
Fri, 18 Mar 2016 05:41:59 +0000 (08:41 +0300)
committerDoug Ledford <dledford@redhat.com>
Mon, 21 Mar 2016 20:06:27 +0000 (16:06 -0400)
The first argument of WARN_ON() is a condition, so it means the warning
message here will just be the name without the ->qp_num information.

Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Reviewed-by: Bart Van Assche <bart.vanassche@sandisk.com>
Signed-off-by: Doug Ledford <dledford@redhat.com>
drivers/infiniband/ulp/srpt/ib_srpt.c

index 25bdaeef25203abf5e250a334c40cbbadb051b01..578c3703421ddb18a5bad7c64bde26c83d546964 100644 (file)
@@ -839,7 +839,7 @@ static void srpt_zerolength_write_done(struct ib_cq *cq, struct ib_wc *wc)
                if (srpt_set_ch_state(ch, CH_DISCONNECTED))
                        schedule_work(&ch->release_work);
                else
-                       WARN_ONCE("%s-%d\n", ch->sess_name, ch->qp->qp_num);
+                       WARN_ONCE(1, "%s-%d\n", ch->sess_name, ch->qp->qp_num);
        }
 }
 
This page took 0.025617 seconds and 5 git commands to generate.