Commit d8f05e98 authored by Colin Ian King's avatar Colin Ian King Committed by Jakub Kicinski

cnic: remove redundant assignment to variable ret

The variable ret is being assigned with a value that is never read,
the assignment is redundant and can be removed.

Addresses-Coverity: ("Unused value")
Signed-off-by: default avatarColin Ian King <colin.king@canonical.com>
Reviewed-by: default avatarMichael Chan <michael.chan@broadcom.com>
Signed-off-by: default avatarJakub Kicinski <kuba@kernel.org>
parent 4d2c9994
...@@ -1918,7 +1918,6 @@ static int cnic_bnx2x_iscsi_ofld1(struct cnic_dev *dev, struct kwqe *wqes[], ...@@ -1918,7 +1918,6 @@ static int cnic_bnx2x_iscsi_ofld1(struct cnic_dev *dev, struct kwqe *wqes[],
ret = cnic_alloc_bnx2x_conn_resc(dev, l5_cid); ret = cnic_alloc_bnx2x_conn_resc(dev, l5_cid);
if (ret) { if (ret) {
atomic_dec(&cp->iscsi_conn); atomic_dec(&cp->iscsi_conn);
ret = 0;
goto done; goto done;
} }
ret = cnic_setup_bnx2x_ctx(dev, wqes, num); ret = cnic_setup_bnx2x_ctx(dev, wqes, num);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment