diff mbox series

[04/10] scsi: megaraid: Remove set but unused variable

Message ID 20200706123349.451915-1-damien.lemoal@wdc.com (mailing list archive)
State Mainlined
Commit 2a6576d29d3b153b58fbaf2bd0ebc5fce424d73b
Headers show
Series Fix compilation warnings | expand

Commit Message

Damien Le Moal July 6, 2020, 12:33 p.m. UTC
In mega_build_cmd(), the variable epthru is set but not used. Remove it
to avoid a compiler warning.

Signed-off-by: Damien Le Moal <damien.lemoal@wdc.com>
---
 drivers/scsi/megaraid.c | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)
diff mbox series

Patch

diff --git a/drivers/scsi/megaraid.c b/drivers/scsi/megaraid.c
index 07ce31c546ba..96ecf5929e68 100644
--- a/drivers/scsi/megaraid.c
+++ b/drivers/scsi/megaraid.c
@@ -517,7 +517,6 @@  mega_get_ldrv_num(adapter_t *adapter, struct scsi_cmnd *cmd, int channel)
 static scb_t *
 mega_build_cmd(adapter_t *adapter, struct scsi_cmnd *cmd, int *busy)
 {
-	mega_ext_passthru	*epthru;
 	mega_passthru	*pthru;
 	scb_t	*scb;
 	mbox_t	*mbox;
@@ -905,7 +904,7 @@  mega_build_cmd(adapter_t *adapter, struct scsi_cmnd *cmd, int *busy)
 
 		if( adapter->support_ext_cdb ) {
 
-			epthru = mega_prepare_extpassthru(adapter, scb, cmd,
+			mega_prepare_extpassthru(adapter, scb, cmd,
 					channel, target);
 
 			mbox->m_out.cmd = MEGA_MBOXCMD_EXTPTHRU;