diff options
author | Martin Pieuchot <mpi@cvs.openbsd.org> | 2015-05-21 09:22:40 +0000 |
---|---|---|
committer | Martin Pieuchot <mpi@cvs.openbsd.org> | 2015-05-21 09:22:40 +0000 |
commit | 27bd5b73d372ce2677675d525d3585bb4f7fb7a2 (patch) | |
tree | 428354733b52e8bef64af98dd91cd82956a1d22e /sys/dev/usb | |
parent | 42c3219ed782c5a1065ad5ca7c71d8734c4065e0 (diff) |
Convert to if_output().
Diffstat (limited to 'sys/dev/usb')
-rw-r--r-- | sys/dev/usb/if_upl.c | 27 |
1 files changed, 2 insertions, 25 deletions
diff --git a/sys/dev/usb/if_upl.c b/sys/dev/usb/if_upl.c index d4f519ad3f4..78a8b105331 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.64 2015/04/10 08:41:43 mpi Exp $ */ +/* $OpenBSD: if_upl.c,v 1.65 2015/05/21 09:22:39 mpi Exp $ */ /* $NetBSD: if_upl.c,v 1.19 2002/07/11 21:14:26 augustss Exp $ */ /* * Copyright (c) 2000 The NetBSD Foundation, Inc. @@ -888,28 +888,5 @@ int upl_output(struct ifnet *ifp, struct mbuf *m, struct sockaddr *dst, struct rtentry *rt0) { - int s, len, error; - - DPRINTFN(10,("%s: %s: enter\n", - ((struct upl_softc *)ifp->if_softc)->sc_dev.dv_xname, - __func__)); - - len = m->m_pkthdr.len; - s = splnet(); - /* - * Queue message on interface, and start output if interface - * not yet active. - */ - IFQ_ENQUEUE(&ifp->if_snd, m, NULL, error); - if (error) { - /* mbuf is already freed */ - splx(s); - return (error); - } - ifp->if_obytes += len; - if ((ifp->if_flags & IFF_OACTIVE) == 0) - (*ifp->if_start)(ifp); - splx(s); - - return (0); + return (if_output(ifp, m)); } |