summaryrefslogtreecommitdiff
path: root/sys/arch
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/arch
parent5b81c3603a7bf36f6eeefe927212e9a44e74607a (diff)
Fix use of uninitialized variable, found by Maxime Villard.
ok miod@
Diffstat (limited to 'sys/arch')
-rw-r--r--sys/arch/sparc/dev/zx.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/arch/sparc/dev/zx.c b/sys/arch/sparc/dev/zx.c
index f8405c9b01b..5f109fcfa4c 100644
--- a/sys/arch/sparc/dev/zx.c
+++ b/sys/arch/sparc/dev/zx.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: zx.c,v 1.24 2013/05/31 22:07:49 deraadt Exp $ */
+/* $OpenBSD: zx.c,v 1.25 2013/09/28 06:43:42 mlarkin Exp $ */
/* $NetBSD: zx.c,v 1.5 2002/10/02 16:52:46 thorpej Exp $ */
/*
@@ -507,7 +507,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);