summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAaron Campbell <aaron@cvs.openbsd.org>2001-03-09 14:56:45 +0000
committerAaron Campbell <aaron@cvs.openbsd.org>2001-03-09 14:56:45 +0000
commit82c5f4e0816d23ebb286569c6bfd845ce1cae8a1 (patch)
treec06dc3fdba624d9d5b1119cee7663ac513264369
parent86626b0ac3497c5425025dc6bd297b2873e996e2 (diff)
Remove two unnecessary splx(). This was missed somewhere along the way, since
this was done long ago in NetBSD during an update to ppp-2.3b4.
-rw-r--r--sys/net/ppp_tty.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/sys/net/ppp_tty.c b/sys/net/ppp_tty.c
index 73b49d61f00..9be485c26fb 100644
--- a/sys/net/ppp_tty.c
+++ b/sys/net/ppp_tty.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: ppp_tty.c,v 1.9 2000/06/30 01:05:19 art Exp $ */
+/* $OpenBSD: ppp_tty.c,v 1.10 2001/03/09 14:56:44 aaron Exp $ */
/* $NetBSD: ppp_tty.c,v 1.12 1997/03/24 21:23:10 christos Exp $ */
/*
@@ -789,7 +789,7 @@ pppinput(c, tp)
{
register struct ppp_softc *sc;
struct mbuf *m;
- int ilen, s = 0;
+ int ilen, s;
sc = (struct ppp_softc *) tp->t_sc;
if (sc == NULL || tp != (struct tty *) sc->sc_devp)
@@ -1011,7 +1011,6 @@ pppinput(c, tp)
++m->m_len;
*sc->sc_mp++ = c;
sc->sc_fcs = PPP_FCS(sc->sc_fcs, c);
- splx(s);
return 0;
flush:
@@ -1024,7 +1023,6 @@ pppinput(c, tp)
if (sc->sc_flags & SC_LOG_FLUSH)
ppplogchar(sc, c);
}
- splx(s);
return 0;
}