diff mbox series

[-next] scsi: aic7xxx: remove set but not used variable 'shared_scb_data'

Message ID 1536032161-124423-1-git-send-email-yuehaibing@huawei.com (mailing list archive)
State Accepted
Headers show
Series [-next] scsi: aic7xxx: remove set but not used variable 'shared_scb_data' | expand

Commit Message

YueHaibing Sept. 4, 2018, 3:36 a.m. UTC
Fixes gcc '-Wunused-but-set-variable' warning:

drivers/scsi/aic7xxx/aic79xx_pci.c: In function 'ahd_pci_config':
drivers/scsi/aic7xxx/aic79xx_pci.c:291:19: warning:
 variable 'shared_scb_data' set but not used [-Wunused-but-set-variable]

Signed-off-by: YueHaibing <yuehaibing@huawei.com>
---
 drivers/scsi/aic7xxx/aic79xx_pci.c | 2 --
 1 file changed, 2 deletions(-)

Comments

Martin K. Petersen Sept. 17, 2018, 6:34 a.m. UTC | #1
YueHaibing,

> Fixes gcc '-Wunused-but-set-variable' warning:
>
> drivers/scsi/aic7xxx/aic79xx_pci.c: In function 'ahd_pci_config':
> drivers/scsi/aic7xxx/aic79xx_pci.c:291:19: warning:
>  variable 'shared_scb_data' set but not used [-Wunused-but-set-variable]

Applied to 4.20/scsi-queue, thank you!
diff mbox series

Patch

diff --git a/drivers/scsi/aic7xxx/aic79xx_pci.c b/drivers/scsi/aic7xxx/aic79xx_pci.c
index c68943b..8397ae9 100644
--- a/drivers/scsi/aic7xxx/aic79xx_pci.c
+++ b/drivers/scsi/aic7xxx/aic79xx_pci.c
@@ -288,13 +288,11 @@  static void	ahd_configure_termination(struct ahd_softc *ahd,
 int
 ahd_pci_config(struct ahd_softc *ahd, const struct ahd_pci_identity *entry)
 {
-	struct scb_data *shared_scb_data;
 	u_int		 command;
 	uint32_t	 devconfig;
 	uint16_t	 subvendor; 
 	int		 error;
 
-	shared_scb_data = NULL;
 	ahd->description = entry->name;
 	/*
 	 * Record if this is an HP board.