[PATCH 2/3] scsi: aic7xxx: remove set but not used variable 'ahc'

From: yu kuai
Date: Thu Jan 16 2020 - 06:57:05 EST


Fixes gcc '-Wunused-but-set-variable' warning:

drivers/scsi/aic7xxx/aic7xxx_osm.c: In function
âahc_linux_slave_configureâ:
drivers/scsi/aic7xxx/aic7xxx_osm.c:674:20: warning:
variable âahcâ set but not used [-Wunused-but-set-variable]

It is never used, and so can be removed.

Signed-off-by: yu kuai <yukuai3@xxxxxxxxxx>
---
drivers/scsi/aic7xxx/aic7xxx_osm.c | 4 ----
1 file changed, 4 deletions(-)

diff --git a/drivers/scsi/aic7xxx/aic7xxx_osm.c b/drivers/scsi/aic7xxx/aic7xxx_osm.c
index e99aa154f77a..2cda0736c989 100644
--- a/drivers/scsi/aic7xxx/aic7xxx_osm.c
+++ b/drivers/scsi/aic7xxx/aic7xxx_osm.c
@@ -667,10 +667,6 @@ ahc_linux_slave_alloc(struct scsi_device *sdev)
static int
ahc_linux_slave_configure(struct scsi_device *sdev)
{
- struct ahc_softc *ahc;
-
- ahc = *((struct ahc_softc **)sdev->host->hostdata);
-
if (bootverbose)
sdev_printk(KERN_INFO, sdev, "Slave Configure\n");

--
2.17.2