diff options
author | krw <krw@openbsd.org> | 2020-07-11 15:51:36 +0000 |
---|---|---|
committer | krw <krw@openbsd.org> | 2020-07-11 15:51:36 +0000 |
commit | 4df96f4c9268a3617d6b2e587128bf0bf9725023 (patch) | |
tree | e852df758c0059c834f4cfb63cacb20e3b9d7645 | |
parent | Shuffle sc_link.openings initialization down to its friends and just (diff) | |
download | wireguard-openbsd-4df96f4c9268a3617d6b2e587128bf0bf9725023.tar.xz wireguard-openbsd-4df96f4c9268a3617d6b2e587128bf0bf9725023.zip |
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.c | 3 |
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; |