artulab
projects
/
openbsd
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0615265
)
avoid using a var uninitialised
author
jsg
<jsg@openbsd.org>
Thu, 15 Oct 2015 01:14:33 +0000
(
01:14
+0000)
committer
jsg
<jsg@openbsd.org>
Thu, 15 Oct 2015 01:14:33 +0000
(
01:14
+0000)
ok jung@
sys/dev/isa/asmc.c
patch
|
blob
|
history
diff --git
a/sys/dev/isa/asmc.c
b/sys/dev/isa/asmc.c
index
e8c25e3
..
147fbe6
100644
(file)
--- a/
sys/dev/isa/asmc.c
+++ b/
sys/dev/isa/asmc.c
@@
-1,4
+1,4
@@
-/* $OpenBSD: asmc.c,v 1.1
0 2015/10/10 12:05:47 jung Exp $
*/
+/* $OpenBSD: asmc.c,v 1.1
1 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);