Skip to content

Commit

Permalink
i40iw: Fix incorrect check for error
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Mustafa Ismail authored and Doug Ledford committed Dec 12, 2016
1 parent 6b0805c commit 0cc0d85
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/infiniband/hw/i40iw/i40iw_puda.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 0cc0d85

Please sign in to comment.