summaryrefslogtreecommitdiffstats
path: root/drivers/scsi/a100u2w.c
diff options
context:
space:
mode:
authorColin Ian King <colin.king@canonical.com>2021-03-25 18:07:31 +0100
committerMartin K. Petersen <martin.petersen@oracle.com>2021-03-30 05:33:06 +0200
commit92b4c52c43e1309368bc858a56b4e5d6db159d99 (patch)
treebdd55336e83b83f80fcbfe702effcad9ff52181f /drivers/scsi/a100u2w.c
parentscsi: core: scsi_host_cmd_pool is declared twice (diff)
downloadlinux-92b4c52c43e1309368bc858a56b4e5d6db159d99.tar.xz
linux-92b4c52c43e1309368bc858a56b4e5d6db159d99.zip
scsi: a100u2w: Remove unused variable biosaddr
The variable biosaddr is being assigned a value that is never read, the variable is redundant and can be safely removed. Link: https://lore.kernel.org/r/20210325170731.484651-1-colin.king@canonical.com Addresses-Coverity: ("Unused value") Signed-off-by: Colin Ian King <colin.king@canonical.com> Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
Diffstat (limited to 'drivers/scsi/a100u2w.c')
-rw-r--r--drivers/scsi/a100u2w.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/drivers/scsi/a100u2w.c b/drivers/scsi/a100u2w.c
index c9ed210d77b3..028af6b1057c 100644
--- a/drivers/scsi/a100u2w.c
+++ b/drivers/scsi/a100u2w.c
@@ -1088,7 +1088,6 @@ static int inia100_probe_one(struct pci_dev *pdev,
unsigned long port, bios;
int error = -ENODEV;
u32 sz;
- unsigned long biosaddr;
if (pci_enable_device(pdev))
goto out;
@@ -1138,8 +1137,6 @@ static int inia100_probe_one(struct pci_dev *pdev,
goto out_free_scb_array;
}
- biosaddr = host->BIOScfg;
- biosaddr = (biosaddr << 4);
if (init_orchid(host)) { /* Initialize orchid chip */
printk("inia100: initial orchid fail!!\n");
goto out_free_escb_array;