Skip to content

Commit

Permalink
scsi: a100u2w: Remove unused variable biosaddr
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Colin Ian King authored and Martin K. Petersen committed Mar 30, 2021
1 parent 6bfe985 commit 92b4c52
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions drivers/scsi/a100u2w.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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;
Expand Down

0 comments on commit 92b4c52

Please sign in to comment.