summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKenneth R Westerback <krw@cvs.openbsd.org>2020-07-11 15:51:37 +0000
committerKenneth R Westerback <krw@cvs.openbsd.org>2020-07-11 15:51:37 +0000
commit8020aabbab23b0f5239fd5886b42e18bb7d92f0d (patch)
tree194517f1930d7d7791e7319e7f63e9956b254f01
parentf3341188c03644e7e0e690a350c43b9226e9b26b (diff)
Oops. One too many lines deleted, leaving 'buswidth' uninitialized but
utilized. Spotted by jsg@'s compiler which seems to issue more warnings than mine.
-rw-r--r--sys/dev/ic/siop_common.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/sys/dev/ic/siop_common.c b/sys/dev/ic/siop_common.c
index e30d1b11536..be891210285 100644
--- a/sys/dev/ic/siop_common.c
+++ b/sys/dev/ic/siop_common.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: siop_common.c,v 1.41 2020/07/04 16:41:23 krw Exp $ */
+/* $OpenBSD: siop_common.c,v 1.42 2020/07/11 15:51:36 krw Exp $ */
/* $NetBSD: siop_common.c,v 1.37 2005/02/27 00:27:02 perry Exp $ */
/*
@@ -103,6 +103,7 @@ siop_common_attach(sc)
* for devices attached to this adapter. It is passed to
* the upper layers in config_found().
*/
+ buswidth = (sc->features & SF_BUS_WIDE) ? 16 : 8;
sc->sc_id = bus_space_read_1(sc->sc_rt, sc->sc_rh, SIOP_SCID);
if (sc->sc_id == 0 || sc->sc_id >= buswidth)
sc->sc_id = SIOP_DEFAULT_TARGET;