diff options
author | Ted Unangst <tedu@cvs.openbsd.org> | 2010-07-02 02:29:46 +0000 |
---|---|---|
committer | Ted Unangst <tedu@cvs.openbsd.org> | 2010-07-02 02:29:46 +0000 |
commit | be38e5e8b8cef7e788be53edcf96858d8d8d6135 (patch) | |
tree | 594e0e68c5b4d2e0cb6522a4fd776d41a739aaf7 /sys/dev/isa/if_ex.c | |
parent | ca285c7804f57facba7aa19e5aa9afc1b38c852e (diff) |
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; + } } /* |