summaryrefslogtreecommitdiff
path: root/sys
diff options
context:
space:
mode:
authorDavid Gwynne <dlg@cvs.openbsd.org>2005-11-10 13:24:52 +0000
committerDavid Gwynne <dlg@cvs.openbsd.org>2005-11-10 13:24:52 +0000
commit6250670363fb119aa6178193911dbfa7f0aa5818 (patch)
treecb7d343ca37f5f2644ffacfd0920bf244d89b553 /sys
parent5ae72b326355723792ce26221eae46c065638e25 (diff)
i am a stupid head. unbreak kernels that done have the bio(4) device.
reported and fixed by Michael Knudsen.
Diffstat (limited to 'sys')
-rw-r--r--sys/scsi/safte.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/sys/scsi/safte.c b/sys/scsi/safte.c
index 1c5e897f0cb..0d301b99b2e 100644
--- a/sys/scsi/safte.c
+++ b/sys/scsi/safte.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: safte.c,v 1.17 2005/11/10 08:36:37 dlg Exp $ */
+/* $OpenBSD: safte.c,v 1.18 2005/11/10 13:24:51 dlg Exp $ */
/*
* Copyright (c) 2005 David Gwynne <dlg@openbsd.org>
@@ -171,7 +171,9 @@ safte_attach(struct device *parent, struct device *self, void *aux)
sc->sc_encbuf = NULL;
sc->sc_nsensors = 0;
+#if NBIO > 0
sc->sc_nslots = 0;
+#endif
if (safte_read_config(sc) != 0) {
printf("%s: unable to read enclosure configuration\n",