diff mbox series

scsi: be2iscsi: remove unused variable dmsg

Message ID 20180816140254.20955-1-colin.king@canonical.com (mailing list archive)
State Accepted
Headers show
Series scsi: be2iscsi: remove unused variable dmsg | expand

Commit Message

Colin King Aug. 16, 2018, 2:02 p.m. UTC
From: Colin Ian King <colin.king@canonical.com>

Variable dmsg is not being used and is redundant and hence can
be removed.

Cleans up clang warning:
warning: variable 'dmsg' set but not used [-Wunused-but-set-variable]

Signed-off-by: Colin Ian King <colin.king@canonical.com>
---
 drivers/scsi/be2iscsi/be_main.c | 2 --
 1 file changed, 2 deletions(-)

Comments

Martin K. Petersen Aug. 30, 2018, 11:26 a.m. UTC | #1
Colin,

> Variable dmsg is not being used and is redundant and hence can
> be removed.
>
> Cleans up clang warning:
> warning: variable 'dmsg' set but not used [-Wunused-but-set-variable]

Applied to 4.20/scsi-queue. Thanks!
diff mbox series

Patch

diff --git a/drivers/scsi/be2iscsi/be_main.c b/drivers/scsi/be2iscsi/be_main.c
index 3660059784f7..d544453aa466 100644
--- a/drivers/scsi/be2iscsi/be_main.c
+++ b/drivers/scsi/be2iscsi/be_main.c
@@ -1866,7 +1866,6 @@  unsigned int beiscsi_process_cq(struct be_eq_obj *pbe_eq, int budget)
 {
 	struct be_queue_info *cq;
 	struct sol_cqe *sol;
-	struct dmsg_cqe *dmsg;
 	unsigned int total = 0;
 	unsigned int num_processed = 0;
 	unsigned short code = 0, cid = 0;
@@ -1939,7 +1938,6 @@  unsigned int beiscsi_process_cq(struct be_eq_obj *pbe_eq, int budget)
 				    "BM_%d : Received %s[%d] on CID : %d\n",
 				    cqe_desc[code], code, cid);
 
-			dmsg = (struct dmsg_cqe *)sol;
 			hwi_complete_drvr_msgs(beiscsi_conn, phba, sol);
 			break;
 		case UNSOL_HDR_NOTIFY: