diff options
author | Theo de Raadt <deraadt@cvs.openbsd.org> | 2010-09-06 16:01:53 +0000 |
---|---|---|
committer | Theo de Raadt <deraadt@cvs.openbsd.org> | 2010-09-06 16:01:53 +0000 |
commit | bc69eefaca30cad0bede9f6b468f222cbf043e62 (patch) | |
tree | 6602c0bf5e9918575440daa2415635e57e8c27d6 /sys | |
parent | f21d71f9d6e6cbb7af2aaf79528ac224ef6d73ad (diff) |
initialize rv to 0 in the activate function
Diffstat (limited to 'sys')
-rw-r--r-- | sys/dev/ic/fxp.c | 4 | ||||
-rw-r--r-- | sys/dev/ic/xl.c | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/sys/dev/ic/fxp.c b/sys/dev/ic/fxp.c index e6e389afd31..6cc76fffaac 100644 --- a/sys/dev/ic/fxp.c +++ b/sys/dev/ic/fxp.c @@ -1,4 +1,4 @@ -/* $OpenBSD: fxp.c,v 1.105 2010/08/31 17:13:46 deraadt Exp $ */ +/* $OpenBSD: fxp.c,v 1.106 2010/09/06 16:01:52 deraadt Exp $ */ /* $NetBSD: if_fxp.c,v 1.2 1997/06/05 02:01:55 thorpej Exp $ */ /* @@ -294,7 +294,7 @@ fxp_activate(struct device *self, int act) { struct fxp_softc *sc = (struct fxp_softc *)self; struct ifnet *ifp = &sc->sc_arpcom.ac_if; - int rv; + int rv = 0; switch (act) { case DVACT_QUIESCE: diff --git a/sys/dev/ic/xl.c b/sys/dev/ic/xl.c index b087ee9f42d..49e1b5938c8 100644 --- a/sys/dev/ic/xl.c +++ b/sys/dev/ic/xl.c @@ -1,4 +1,4 @@ -/* $OpenBSD: xl.c,v 1.94 2010/08/31 17:13:47 deraadt Exp $ */ +/* $OpenBSD: xl.c,v 1.95 2010/09/06 16:01:52 deraadt Exp $ */ /* * Copyright (c) 1997, 1998, 1999 @@ -200,7 +200,7 @@ xl_activate(struct device *self, int act) { struct xl_softc *sc = (struct xl_softc *)self; struct ifnet *ifp = &sc->sc_arpcom.ac_if; - int rv; + int rv = 0; switch (act) { case DVACT_QUIESCE: |