diff options
author | Jason Wright <jason@cvs.openbsd.org> | 2003-02-14 22:04:24 +0000 |
---|---|---|
committer | Jason Wright <jason@cvs.openbsd.org> | 2003-02-14 22:04:24 +0000 |
commit | df2d5b5f3d2b92a126d60da402351246857d8159 (patch) | |
tree | 087e1dc20a1398d288f161de290d30a81b33288f /sys/dev/sbus/spif.c | |
parent | 43ac66b84b9e4d74d70db1f4d6f38f99dd2aa6a6 (diff) |
always need softintr after rxexception (avoids uninitialized variable); pointed out by henric
Diffstat (limited to 'sys/dev/sbus/spif.c')
-rw-r--r-- | sys/dev/sbus/spif.c | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/sys/dev/sbus/spif.c b/sys/dev/sbus/spif.c index 9bfe8ff564c..aada8c78264 100644 --- a/sys/dev/sbus/spif.c +++ b/sys/dev/sbus/spif.c @@ -1,4 +1,4 @@ -/* $OpenBSD: spif.c,v 1.5 2003/02/11 19:20:28 mickey Exp $ */ +/* $OpenBSD: spif.c,v 1.6 2003/02/14 22:04:22 jason Exp $ */ /* * Copyright (c) 1999-2002 Jason L. Wright (jason@thought.net) @@ -780,7 +780,6 @@ spifstcintr_rxexception(sc, needsoftp) { struct stty_port *sp; u_int8_t channel, *ptr; - int cnt; channel = CD180_GSCR_CHANNEL(STC_READ(sc, STC_GSCR1)); sp = &sc->sc_ttys->sc_port[channel]; @@ -796,10 +795,8 @@ spifstcintr_rxexception(sc, needsoftp) SET(sp->sp_flags, STTYF_RING_OVERFLOW); } STC_WRITE(sc, STC_EOSRR, 0); - if (cnt) { - *needsoftp = 1; - sp->sp_rput = ptr; - } + *needsoftp = 1; + sp->sp_rput = ptr; return (1); } |