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/arch/sparc/dev | |
parent | 43ac66b84b9e4d74d70db1f4d6f38f99dd2aa6a6 (diff) |
always need softintr after rxexception (avoids uninitialized variable); pointed out by henric
Diffstat (limited to 'sys/arch/sparc/dev')
-rw-r--r-- | sys/arch/sparc/dev/spif.c | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/sys/arch/sparc/dev/spif.c b/sys/arch/sparc/dev/spif.c index 1d28652c70b..e4c6a77e8b4 100644 --- a/sys/arch/sparc/dev/spif.c +++ b/sys/arch/sparc/dev/spif.c @@ -1,4 +1,4 @@ -/* $OpenBSD: spif.c,v 1.13 2003/02/11 19:20:26 mickey Exp $ */ +/* $OpenBSD: spif.c,v 1.14 2003/02/14 22:04:23 jason Exp $ */ /* * Copyright (c) 1999 Jason L. Wright (jason@thought.net) @@ -724,7 +724,6 @@ spifstcintr_rxexception(sc, needsoftp) { struct stty_port *sp; u_int8_t channel, *ptr; - int cnt; channel = CD180_GSCR_CHANNEL(sc->sc_regs->stc.gscr1); sp = &sc->sc_ttys->sc_port[channel]; @@ -740,10 +739,8 @@ spifstcintr_rxexception(sc, needsoftp) SET(sp->sp_flags, STTYF_RING_OVERFLOW); } sc->sc_regs->stc.eosrr = 0; - if (cnt) { - *needsoftp = 1; - sp->sp_rput = ptr; - } + *needsoftp = 1; + sp->sp_rput = ptr; return (1); } |