diff mbox series

[-next] scsi: a100u2w: remove set but not used variable 'bios_phys'

Message ID 1540274386-65609-1-git-send-email-yuehaibing@huawei.com (mailing list archive)
State Deferred
Headers show
Series [-next] scsi: a100u2w: remove set but not used variable 'bios_phys' | expand

Commit Message

Yue Haibing Oct. 23, 2018, 5:59 a.m. UTC
Fixes gcc '-Wunused-but-set-variable' warning:

drivers/scsi/a100u2w.c: In function 'inia100_probe_one':
drivers/scsi/a100u2w.c:1093:8: warning:
 variable 'bios_phys' set but not used [-Wunused-but-set-variable]

It never used since introduction in
comit 4023c4747861 ("[SCSI] a100u2w: Convert into Linux style")

Signed-off-by: YueHaibing <yuehaibing@huawei.com>
---
 drivers/scsi/a100u2w.c | 5 -----
 1 file changed, 5 deletions(-)
diff mbox series

Patch

diff --git a/drivers/scsi/a100u2w.c b/drivers/scsi/a100u2w.c
index 00072ed..012aa25 100644
--- a/drivers/scsi/a100u2w.c
+++ b/drivers/scsi/a100u2w.c
@@ -1089,8 +1089,6 @@  static int inia100_probe_one(struct pci_dev *pdev,
 	unsigned long port, bios;
 	int error = -ENODEV;
 	u32 sz;
-	unsigned long biosaddr;
-	char *bios_phys;
 
 	if (pci_enable_device(pdev))
 		goto out;
@@ -1140,9 +1138,6 @@  static int inia100_probe_one(struct pci_dev *pdev,
 		goto out_free_scb_array;
 	}
 
-	biosaddr = host->BIOScfg;
-	biosaddr = (biosaddr << 4);
-	bios_phys = phys_to_virt(biosaddr);
 	if (init_orchid(host)) {	/* Initialize orchid chip */
 		printk("inia100: initial orchid fail!!\n");
 		goto out_free_escb_array;