Blob Blame History Raw
From: Colin Ian King <colin.king@canonical.com>
Date: Thu, 9 Nov 2017 07:52:15 +0000
Subject: qlge: remove duplicated assignment to mbcp
Patch-mainline: v4.15-rc1
Git-commit: 98b07e3ed019cbea5ad049df3892957d5fa90b9e
References: bsc#1104398 FATE#325895

The assignment to mbcp is identical to the initiatialized value assigned
to mbcp at declaration time a few lines earlier, hence we can remove the
second redundant assignment.  Cleans up clang warning:

drivers/net/ethernet/qlogic/qlge/qlge_mpi.c:209:22: warning:
Value stored to 'mbcp' during its initialization is never read

Signed-off-by: Colin Ian King <colin.king@canonical.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Acked-by: David Chang <dchang@suse.com>
---
 drivers/net/ethernet/qlogic/qlge/qlge_mpi.c |    1 -
 1 file changed, 1 deletion(-)

--- a/drivers/net/ethernet/qlogic/qlge/qlge_mpi.c
+++ b/drivers/net/ethernet/qlogic/qlge/qlge_mpi.c
@@ -212,7 +212,6 @@ static int ql_idc_req_aen(struct ql_adap
 	/* Get the status data and start up a thread to
 	 * handle the request.
 	 */
-	mbcp = &qdev->idc_mbc;
 	mbcp->out_count = 4;
 	status = ql_get_mb_sts(qdev, mbcp);
 	if (status) {