diff options
author | Colin Ian King <colin.king@canonical.com> | 2020-05-08 23:40:26 +0100 |
---|---|---|
committer | Jakub Kicinski <kuba@kernel.org> | 2020-05-08 22:46:16 -0700 |
commit | d8f05e9891fd4e80863f09a17c6d594ac6870a33 (patch) | |
tree | cc1fb5733f8b3057df213f5d26bd75b5024e819a | |
parent | 4d2c99940825637d007da150ad03a6f4442de0f0 (diff) | |
download | lwn-d8f05e9891fd4e80863f09a17c6d594ac6870a33.tar.gz lwn-d8f05e9891fd4e80863f09a17c6d594ac6870a33.zip |
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>
-rw-r--r-- | drivers/net/ethernet/broadcom/cnic.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/drivers/net/ethernet/broadcom/cnic.c b/drivers/net/ethernet/broadcom/cnic.c index 61ab7d21f6bd..c5cca63b8571 100644 --- a/drivers/net/ethernet/broadcom/cnic.c +++ b/drivers/net/ethernet/broadcom/cnic.c @@ -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); |