i40iw: Fix incorrect check for error
authorMustafa Ismail <mustafa.ismail@intel.com>
Tue, 6 Dec 2016 21:49:35 +0000 (15:49 -0600)
committerDoug Ledford <dledford@redhat.com>
Mon, 12 Dec 2016 22:20:29 +0000 (17:20 -0500)
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>
drivers/infiniband/hw/i40iw/i40iw_puda.c

index 7541b0dada59fa9698126cf6549c5b75c6079ef3..c3d28baf8e3a7879c25660e2ecdc433ef9109594 100644 (file)
@@ -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);