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/dev/ic/xl.c | |
parent | f21d71f9d6e6cbb7af2aaf79528ac224ef6d73ad (diff) |
initialize rv to 0 in the activate function
Diffstat (limited to 'sys/dev/ic/xl.c')
-rw-r--r-- | sys/dev/ic/xl.c | 4 |
1 files changed, 2 insertions, 2 deletions
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: |