diff options
author | glebius <glebius@FreeBSD.org> | 2005-08-12 08:27:15 +0000 |
---|---|---|
committer | glebius <glebius@FreeBSD.org> | 2005-08-12 08:27:15 +0000 |
commit | 4c2db6c3c4a9a4e20498d25b997ff34b7653a82d (patch) | |
tree | dba02bd62d4f7cad4b3bc4d475944cb1bd548132 /sys/net/if_ppp.c | |
parent | beb7869726b00748b42d42f24068c853d1982339 (diff) | |
download | FreeBSD-src-4c2db6c3c4a9a4e20498d25b997ff34b7653a82d.zip FreeBSD-src-4c2db6c3c4a9a4e20498d25b997ff34b7653a82d.tar.gz |
Axe ppp_for_tty(). Use tty->t_lsc pointer to store sc. This
also eliminates recursive use of ppp_softc_list_mtx.
PR: kern/84686
Reviewed by: phk
MFC after: 1 week
Diffstat (limited to 'sys/net/if_ppp.c')
-rw-r--r-- | sys/net/if_ppp.c | 16 |
1 files changed, 0 insertions, 16 deletions
diff --git a/sys/net/if_ppp.c b/sys/net/if_ppp.c index 8050d81..877d94d 100644 --- a/sys/net/if_ppp.c +++ b/sys/net/if_ppp.c @@ -160,22 +160,6 @@ static void pppdumpm(struct mbuf *m0); static int ppp_clone_create(struct if_clone *, int); static void ppp_clone_destroy(struct ifnet *); -struct ppp_softc * -ppp_for_tty(struct tty *tp) -{ - struct ppp_softc *sc; - - PPP_LIST_LOCK(); - LIST_FOREACH(sc, &ppp_softc_list, sc_list) { - if (sc->sc_devp == (void*)tp) { - PPP_LIST_UNLOCK(); - return (sc); - } - } - PPP_LIST_UNLOCK(); - return (NULL); -} - IFC_SIMPLE_DECLARE(ppp, 0); /* |