mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2026-05-02 02:47:31 -04:00
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: Colin Ian King <colin.king@canonical.com>
Reviewed-by: Michael Chan <michael.chan@broadcom.com>
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
This commit is contained in:
committed by
Jakub Kicinski
parent
4d2c999408
commit
d8f05e9891
@@ -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);
|
||||
if (ret) {
|
||||
atomic_dec(&cp->iscsi_conn);
|
||||
ret = 0;
|
||||
goto done;
|
||||
}
|
||||
ret = cnic_setup_bnx2x_ctx(dev, wqes, num);
|
||||
|
||||
Reference in New Issue
Block a user