summaryrefslogtreecommitdiff
path: root/sys/scsi
diff options
context:
space:
mode:
authorKenneth R Westerback <krw@cvs.openbsd.org>2019-08-18 16:21:33 +0000
committerKenneth R Westerback <krw@cvs.openbsd.org>2019-08-18 16:21:33 +0000
commit2ce8344d10452cd01e5beb197ad37f066804d1ec (patch)
tree4959383ead67b12e35b49e0dd0d42b9220f7fc1c /sys/scsi
parent58cf5c96d08580d463b4988f5b4569c07929c5e6 (diff)
Rename 'link' to 'link0' as it refers to target 0 only.
Diffstat (limited to 'sys/scsi')
-rw-r--r--sys/scsi/scsiconf.c18
1 files changed, 9 insertions, 9 deletions
diff --git a/sys/scsi/scsiconf.c b/sys/scsi/scsiconf.c
index 6fbe29c6824..86f14812ef2 100644
--- a/sys/scsi/scsiconf.c
+++ b/sys/scsi/scsiconf.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: scsiconf.c,v 1.202 2019/08/18 02:43:52 krw Exp $ */
+/* $OpenBSD: scsiconf.c,v 1.203 2019/08/18 16:21:32 krw Exp $ */
/* $NetBSD: scsiconf.c,v 1.57 1996/05/02 01:09:01 neil Exp $ */
/*
@@ -344,24 +344,24 @@ int
scsi_probe_target(struct scsibus_softc *sb, int target)
{
struct scsi_link *alink = sb->adapter_link;
- struct scsi_link *link;
+ struct scsi_link *link0;
struct scsi_report_luns_data *report;
int i, nluns, lun;
if (scsi_probe_lun(sb, target, 0) == EINVAL)
return (EINVAL);
- link = scsi_get_link(sb, target, 0);
- if (link == NULL)
+ link0 = scsi_get_link(sb, target, 0);
+ if (link0 == NULL)
return (ENXIO);
- if ((link->flags & (SDEV_UMASS | SDEV_ATAPI)) == 0 &&
- SCSISPC(link->inqdata.version) > 2) {
+ if ((link0->flags & (SDEV_UMASS | SDEV_ATAPI)) == 0 &&
+ SCSISPC(link0->inqdata.version) > 2) {
report = dma_alloc(sizeof(*report), PR_WAITOK);
if (report == NULL)
goto dumbscan;
- if (scsi_report_luns(link, REPORT_NORMAL, report,
+ if (scsi_report_luns(link0, REPORT_NORMAL, report,
sizeof(*report), scsi_autoconf | SCSI_SILENT |
SCSI_IGNORE_ILLEGAL_REQUEST | SCSI_IGNORE_NOT_READY |
SCSI_IGNORE_MEDIA_CHANGE, 10000) != 0) {
@@ -384,9 +384,9 @@ scsi_probe_target(struct scsibus_softc *sb, int target)
continue;
/* Probe the provided LUN. Don't check LUN 0. */
- scsi_remove_link(sb, link);
+ scsi_remove_link(sb, link0);
scsi_probe_lun(sb, target, lun);
- scsi_add_link(sb, link);
+ scsi_add_link(sb, link0);
}
dma_free(report, sizeof(*report));