From: Colin Ian King Date: Thu, 13 May 2021 11:49:10 +0000 (+0100) Subject: net: qed: remove redundant initialization of variable rc X-Git-Tag: accepted/tizen/unified/20230118.172025~6942^2~545 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=5efe2575316f97aa6d004fc0534e48ea85acdff3;p=platform%2Fkernel%2Flinux-rpi.git 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 Signed-off-by: David S. Miller --- diff --git a/drivers/net/ethernet/qlogic/qed/qed_iscsi.c b/drivers/net/ethernet/qlogic/qed/qed_iscsi.c index 4eae4ee..448567a 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 */