Commit 81cb3eb6 authored by Colin Ian King's avatar Colin Ian King Committed by Martin K. Petersen

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: default avatarColin Ian King <colin.i.king@gmail.com>
Link: https://lore.kernel.org/r/20221031160512.872153-1-colin.i.king@gmail.comAcked-by: default avatarKhalid Aziz <khalid@gonehiking.org>
Signed-off-by: default avatarMartin K. Petersen <martin.petersen@oracle.com>
parent c7cbaab2
...@@ -2198,7 +2198,7 @@ static int blogic_slaveconfig(struct scsi_device *dev) ...@@ -2198,7 +2198,7 @@ static int blogic_slaveconfig(struct scsi_device *dev)
static int __init blogic_init(void) static int __init blogic_init(void)
{ {
int adapter_count = 0, drvr_optindex = 0, probeindex; int drvr_optindex = 0, probeindex;
struct blogic_adapter *adapter; struct blogic_adapter *adapter;
int ret = 0; int ret = 0;
...@@ -2368,10 +2368,8 @@ static int __init blogic_init(void) ...@@ -2368,10 +2368,8 @@ static int __init blogic_init(void)
list_del(&myadapter->host_list); list_del(&myadapter->host_list);
scsi_host_put(host); scsi_host_put(host);
ret = -ENODEV; ret = -ENODEV;
} else { } else
scsi_scan_host(host); scsi_scan_host(host);
adapter_count++;
}
} }
} else { } else {
/* /*
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment