Commit 5efe2575 authored by Colin Ian King's avatar Colin Ian King Committed by David S. Miller
Browse files

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: default avatarColin Ian King <colin.king@canonical.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 25e248a2
Loading
Loading
Loading
Loading
+1 −1
Original line number Original line Diff line number Diff line
@@ -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 iscsi_conn_update_ramrod_params *p_ramrod = NULL;
	struct qed_spq_entry *p_ent = NULL;
	struct qed_spq_entry *p_ent = NULL;
	struct qed_sp_init_data init_data;
	struct qed_sp_init_data init_data;
	int rc = -EINVAL;
	int rc;
	u32 dval;
	u32 dval;


	/* Get SPQ entry */
	/* Get SPQ entry */