summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMartin Pieuchot <mpi@cvs.openbsd.org>2013-02-07 13:35:19 +0000
committerMartin Pieuchot <mpi@cvs.openbsd.org>2013-02-07 13:35:19 +0000
commit57603212f851a34bbdbfdf0054ea2b47a1f38063 (patch)
treed757b39c2de37ed53ee4fe63e7fb32683bc36d21
parentccc3b0acfd84f697d85577c0cad9be6252bea471 (diff)
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;
-}