diff options
author | Jonathan Gray <jsg@cvs.openbsd.org> | 2015-10-15 01:14:34 +0000 |
---|---|---|
committer | Jonathan Gray <jsg@cvs.openbsd.org> | 2015-10-15 01:14:34 +0000 |
commit | 0fac43ce93b2550b25fbf1ca76d023e6bbdfd3db (patch) | |
tree | 6a6ccdec994d0de68eda0d128d91947fa1a439ce | |
parent | a00ae78c8d18fe4b10db99514d874e04184cb336 (diff) |
avoid using a var uninitialised
ok jung@
-rw-r--r-- | sys/dev/isa/asmc.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/sys/dev/isa/asmc.c b/sys/dev/isa/asmc.c index e8c25e30e94..147fbe6cb76 100644 --- a/sys/dev/isa/asmc.c +++ b/sys/dev/isa/asmc.c @@ -1,4 +1,4 @@ -/* $OpenBSD: asmc.c,v 1.10 2015/10/10 12:05:47 jung Exp $ */ +/* $OpenBSD: asmc.c,v 1.11 2015/10/15 01:14:33 jsg Exp $ */ /* * Copyright (c) 2015 Joerg Jung <jung@openbsd.org> * @@ -514,6 +514,7 @@ asmc_motions(struct asmc_softc *sc, uint8_t *n) int i; *n = 0; + s = 0; if (asmc_try(sc, ASMC_READ, "MOCN", buf, 2) && (s = asmc_status(sc)) != ASMC_NOTFOUND) { printf(", read MOCN failed (0x%x)", s); |