mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-03-16 04:04:06 +00:00
scsi: BusLogic: Remove variable 'adapter_count'
Variable 'adapter_count' is just being incremented and it's never used anywhere else. Remove it. Signed-off-by: Colin Ian King <colin.i.king@gmail.com> Link: https://lore.kernel.org/r/20221031160512.872153-1-colin.i.king@gmail.com Acked-by: Khalid Aziz <khalid@gonehiking.org> Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
This commit is contained in:
parent
c7cbaab2d4
commit
81cb3eb68a
1 changed files with 2 additions and 4 deletions
|
@ -2198,7 +2198,7 @@ static int blogic_slaveconfig(struct scsi_device *dev)
|
|||
|
||||
static int __init blogic_init(void)
|
||||
{
|
||||
int adapter_count = 0, drvr_optindex = 0, probeindex;
|
||||
int drvr_optindex = 0, probeindex;
|
||||
struct blogic_adapter *adapter;
|
||||
int ret = 0;
|
||||
|
||||
|
@ -2368,10 +2368,8 @@ static int __init blogic_init(void)
|
|||
list_del(&myadapter->host_list);
|
||||
scsi_host_put(host);
|
||||
ret = -ENODEV;
|
||||
} else {
|
||||
} else
|
||||
scsi_scan_host(host);
|
||||
adapter_count++;
|
||||
}
|
||||
}
|
||||
} else {
|
||||
/*
|
||||
|
|
Loading…
Add table
Reference in a new issue