summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authormpi <mpi@openbsd.org>2013-02-07 13:35:18 +0000
committermpi <mpi@openbsd.org>2013-02-07 13:35:18 +0000
commita8ea39f62e1081b989985c90a72ee06742896966 (patch)
treecfa4d73f43735fe3959bf90e255ee0b6ab2122cf
parentconvert mbuf tags to use pool(9) as a backend storage; (diff)
downloadwireguard-openbsd-a8ea39f62e1081b989985c90a72ee06742896966.tar.xz
wireguard-openbsd-a8ea39f62e1081b989985c90a72ee06742896966.zip
Remove dead code.
ok mikeb@
-rw-r--r--sys/dev/usb/if_upl.c31
1 files changed, 1 insertions, 30 deletions
diff --git a/sys/dev/usb/if_upl.c b/sys/dev/usb/if_upl.c
index a42b850336b..03e0c3873ff 100644
--- a/sys/dev/usb/if_upl.c
+++ b/sys/dev/usb/if_upl.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: if_upl.c,v 1.49 2012/11/28 01:15:33 brad Exp $ */
+/* $OpenBSD: if_upl.c,v 1.50 2013/02/07 13:35:18 mpi Exp $ */
/* $NetBSD: if_upl.c,v 1.19 2002/07/11 21:14:26 augustss Exp $ */
/*
* Copyright (c) 2000 The NetBSD Foundation, Inc.
@@ -196,7 +196,6 @@ void upl_watchdog(struct ifnet *);
int upl_output(struct ifnet *, struct mbuf *, struct sockaddr *,
struct rtentry *);
-void upl_input(struct ifnet *, struct mbuf *);
/*
* Probe for a Prolific chip.
@@ -991,31 +990,3 @@ upl_output(struct ifnet *ifp, struct mbuf *m, struct sockaddr *dst,
return (0);
}
-
-void
-upl_input(struct ifnet *ifp, struct mbuf *m)
-{
- struct ifqueue *inq;
- int s;
-
- /* XXX Assume all traffic is IP */
-
- schednetisr(NETISR_IP);
- inq = &ipintrq;
-
- s = splnet();
- if (IF_QFULL(inq)) {
- IF_DROP(inq);
- splx(s);
-#if 0
- if (sc->sc_flags & SC_DEBUG)
- printf("%s: input queue full\n", ifp->if_xname);
-#endif
- ifp->if_iqdrops++;
- return;
- }
- IF_ENQUEUE(inq, m);
- splx(s);
- ifp->if_ipackets++;
- ifp->if_ibytes += m->m_len;
-}