summaryrefslogtreecommitdiffstats
path: root/sys/dev/ic/siop.c
diff options
context:
space:
mode:
authorkrw <krw@openbsd.org>2001-06-25 23:14:39 +0000
committerkrw <krw@openbsd.org>2001-06-25 23:14:39 +0000
commit1bf0abb76c90c7d35727eba85e764755476035ff (patch)
treef3395a3609e7d95194f551daf3fddc25b2171704 /sys/dev/ic/siop.c
parentadd cyberflex_verify_AUT0() (diff)
downloadwireguard-openbsd-1bf0abb76c90c7d35727eba85e764755476035ff.tar.xz
wireguard-openbsd-1bf0abb76c90c7d35727eba85e764755476035ff.zip
Revert change to using sc_link in calls to siop_print_info().
sc_link->device_softc not necessarily available for devices like cd's that don't issue SCSI commands after INQUIRY during probe, leaving negotiation triggering to next LUN. Spotted by Nikolay Sturm. Fixing this is not worth the effort and added complexity for a cosmetic improvement. Keep code cleanups done at the same time, and add a typo fix (destiation -> destination).
Diffstat (limited to 'sys/dev/ic/siop.c')
-rw-r--r--sys/dev/ic/siop.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/dev/ic/siop.c b/sys/dev/ic/siop.c
index 333f0d8f547..45c2f961c20 100644
--- a/sys/dev/ic/siop.c
+++ b/sys/dev/ic/siop.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: siop.c,v 1.9 2001/06/24 22:00:01 krw Exp $ */
+/* $OpenBSD: siop.c,v 1.10 2001/06/25 23:14:39 krw Exp $ */
/* $NetBSD: siop.c,v 1.39 2001/02/11 18:04:49 bouyer Exp $ */
/*
@@ -740,7 +740,7 @@ scintr:
if ((siop_target->flags & TARF_SYNC)
== 0) {
siop_target->status = TARST_OK;
- siop_print_info(xs->sc_link);
+ siop_print_info(sc, target);
/* no table to flush here */
CALL_SCRIPT(Ent_msgin_ack);
return 1;
@@ -756,7 +756,7 @@ scintr:
} else if (msg == MSG_EXTENDED &&
extmsg == MSG_EXT_SDTR) {
siop_target->status = TARST_OK;
- siop_print_info(xs->sc_link);
+ siop_print_info(sc, target);
/* no table to flush here */
CALL_SCRIPT(Ent_msgin_ack);
return 1;