diff options
author | 2010-07-02 02:29:45 +0000 | |
---|---|---|
committer | 2010-07-02 02:29:45 +0000 | |
commit | befcd6d1f79c5ef4977a90c2979b20c34c5bc35c (patch) | |
tree | a01e61672bb51208753a53c68a9eb1ff32ee31c3 /sys/dev/isa/if_ex.c | |
parent | fix corrupt UVMHIST_LOG (diff) | |
download | wireguard-openbsd-befcd6d1f79c5ef4977a90c2979b20c34c5bc35c.tar.xz wireguard-openbsd-befcd6d1f79c5ef4977a90c2979b20c34c5bc35c.zip |
some very obvious uninit bugs found when I turned off -Wno-uninitialized
ok deraadt
Diffstat (limited to 'sys/dev/isa/if_ex.c')
-rw-r--r-- | sys/dev/isa/if_ex.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/sys/dev/isa/if_ex.c b/sys/dev/isa/if_ex.c index e9ab96f0532..49eb0775984 100644 --- a/sys/dev/isa/if_ex.c +++ b/sys/dev/isa/if_ex.c @@ -1,4 +1,4 @@ -/* $OpenBSD: if_ex.c,v 1.35 2008/11/28 02:44:17 brad Exp $ */ +/* $OpenBSD: if_ex.c,v 1.36 2010/07/02 02:29:45 tedu Exp $ */ /* * Copyright (c) 1997, Donald A. Schmidt * Copyright (c) 1996, Javier Martín Rueda (jmrueda@diatel.upm.es) @@ -564,7 +564,7 @@ ex_intr(void *arg) struct ex_softc *sc = arg; struct ifnet *ifp = &sc->arpcom.ac_if; int int_status, send_pkts; - int handled; + int handled = 0; DODEBUG(Start_End, printf("exintr: start\n");); @@ -585,8 +585,7 @@ ex_intr(void *arg) handled = 1; ex_tx_intr(sc); send_pkts = 1; - } else - handled = 0; + } } /* |