diff options
author | Colin Ian King <colin.king@canonical.com> | 2021-05-13 12:49:10 +0100 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2021-05-13 15:52:22 -0700 |
commit | 5efe2575316f97aa6d004fc0534e48ea85acdff3 (patch) | |
tree | dd75887a9019a71a622a90d69e379ddead1df20f | |
parent | 25e248a2bc43fe4a7a9815addf1f46d26c0d2442 (diff) | |
download | linux-5efe2575316f97aa6d004fc0534e48ea85acdff3.tar.bz2 |
net: qed: remove redundant initialization of variable rc
The variable rc is being initialized with a value that is never read,
it is being updated later on. The assignment is redundant and can be
removed.
Addresses-Coverity: ("Unused value")
Signed-off-by: Colin Ian King <colin.king@canonical.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
-rw-r--r-- | drivers/net/ethernet/qlogic/qed/qed_iscsi.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/ethernet/qlogic/qed/qed_iscsi.c b/drivers/net/ethernet/qlogic/qed/qed_iscsi.c index 4eae4ee3538f..448567a1f520 100644 --- a/drivers/net/ethernet/qlogic/qed/qed_iscsi.c +++ b/drivers/net/ethernet/qlogic/qed/qed_iscsi.c @@ -453,7 +453,7 @@ static int qed_sp_iscsi_conn_update(struct qed_hwfn *p_hwfn, struct iscsi_conn_update_ramrod_params *p_ramrod = NULL; struct qed_spq_entry *p_ent = NULL; struct qed_sp_init_data init_data; - int rc = -EINVAL; + int rc; u32 dval; /* Get SPQ entry */ |