diff options
author | Dan Carpenter <dan.carpenter@oracle.com> | 2016-03-18 08:41:59 +0300 |
---|---|---|
committer | Doug Ledford <dledford@redhat.com> | 2016-03-21 16:06:27 -0400 |
commit | 5658600e7f67063e75b8fb8fa6c697183d305dd3 (patch) | |
tree | 528e8343da769aa6ebbd3de5e212e30b55e8f8c9 /drivers/infiniband | |
parent | 082eaa50838c6b70a8244f8b01d7ed7d686f84db (diff) | |
download | linux-5658600e7f67063e75b8fb8fa6c697183d305dd3.tar.bz2 |
ib_srpt: fix a WARN_ON() message
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>
Diffstat (limited to 'drivers/infiniband')
-rw-r--r-- | drivers/infiniband/ulp/srpt/ib_srpt.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/infiniband/ulp/srpt/ib_srpt.c b/drivers/infiniband/ulp/srpt/ib_srpt.c index 25bdaeef2520..578c3703421d 100644 --- a/drivers/infiniband/ulp/srpt/ib_srpt.c +++ b/drivers/infiniband/ulp/srpt/ib_srpt.c @@ -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); } } |