diff options
author | Mustafa Ismail <mustafa.ismail@intel.com> | 2016-12-06 22:49:35 +0100 |
---|---|---|
committer | Doug Ledford <dledford@redhat.com> | 2016-12-12 23:20:29 +0100 |
commit | 0cc0d851ccf1746466822c1b7ce02c980406d57f (patch) | |
tree | 8f70ccaa23408caec8fa16a939fd68281b6c2d2e /drivers/infiniband/hw/i40iw | |
parent | i40iw: Assign MSS only when it is a new MTU (diff) | |
download | linux-0cc0d851ccf1746466822c1b7ce02c980406d57f.tar.xz linux-0cc0d851ccf1746466822c1b7ce02c980406d57f.zip |
i40iw: Fix incorrect check for error
In i40iw_ieq_handle_partial() the check for !status is incorrect.
Signed-off-by: Mustafa Ismail <mustafa.ismail@intel.com>
Signed-off-by: Henry Orosco <henry.orosco@intel.com>
Signed-off-by: Doug Ledford <dledford@redhat.com>
Diffstat (limited to 'drivers/infiniband/hw/i40iw')
-rw-r--r-- | drivers/infiniband/hw/i40iw/i40iw_puda.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/infiniband/hw/i40iw/i40iw_puda.c b/drivers/infiniband/hw/i40iw/i40iw_puda.c index 7541b0dada59..c3d28baf8e3a 100644 --- a/drivers/infiniband/hw/i40iw/i40iw_puda.c +++ b/drivers/infiniband/hw/i40iw/i40iw_puda.c @@ -1132,7 +1132,7 @@ static enum i40iw_status_code i40iw_ieq_handle_partial(struct i40iw_puda_rsrc *i list_add(&buf->list, &pbufl); status = i40iw_ieq_create_pbufl(pfpdu, rxlist, &pbufl, buf, fpdu_len); - if (!status) + if (status) goto error; txbuf = i40iw_puda_get_bufpool(ieq); |