summaryrefslogtreecommitdiff
path: root/sys/dev/sbus
diff options
context:
space:
mode:
authorMike Larkin <mlarkin@cvs.openbsd.org>2013-09-28 06:43:43 +0000
committerMike Larkin <mlarkin@cvs.openbsd.org>2013-09-28 06:43:43 +0000
commit1067dba1639af6badcb2ef2677b55bbbec7e9439 (patch)
tree821857f1baef2dd689335c936dc256ad853efc8e /sys/dev/sbus
parent5b81c3603a7bf36f6eeefe927212e9a44e74607a (diff)
Fix use of uninitialized variable, found by Maxime Villard.
ok miod@
Diffstat (limited to 'sys/dev/sbus')
-rw-r--r--sys/dev/sbus/zx.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/dev/sbus/zx.c b/sys/dev/sbus/zx.c
index 7bd47b53336..184d2188077 100644
--- a/sys/dev/sbus/zx.c
+++ b/sys/dev/sbus/zx.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: zx.c,v 1.17 2009/09/05 14:09:35 miod Exp $ */
+/* $OpenBSD: zx.c,v 1.18 2013/09/28 06:43:42 mlarkin Exp $ */
/* $NetBSD: zx.c,v 1.5 2002/10/02 16:52:46 thorpej Exp $ */
/*
@@ -510,7 +510,7 @@ zx_cross_loadwid(struct zx_softc *sc, u_int type, u_int index, u_int value)
if (type == ZX_WID_DBL_8)
tmp = (index & 0x0f) + 0x40;
- else if (type == ZX_WID_DBL_24)
+ else /* ZX_WID_DBL_24 */
tmp = index & 0x3f;
SETREG(zx->zx_type, 0x5800 + tmp);