summaryrefslogtreecommitdiff
path: root/sys/dev/usb/if_upgt.c
diff options
context:
space:
mode:
authorChristian Weisgerber <naddy@cvs.openbsd.org>2008-10-14 18:01:54 +0000
committerChristian Weisgerber <naddy@cvs.openbsd.org>2008-10-14 18:01:54 +0000
commitcbc88b3c14c04595503ce45046c13a37f77b5385 (patch)
tree71c6224ee28a75e73b9d01d08760ae100cbe250b /sys/dev/usb/if_upgt.c
parent8e9707c8a7ef0ba1ba66f02dfad7dda445bf55c5 (diff)
Change m_devget()'s outdated and unused "offset" argument: It is
now the offset into the first mbuf of the target chain before copying the source data over. From FreeBSD. Convert drivers' use of m_devget(). Mostly from thib@. Update mbuf(9) man page. ok claudio@, thib@
Diffstat (limited to 'sys/dev/usb/if_upgt.c')
-rw-r--r--sys/dev/usb/if_upgt.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/sys/dev/usb/if_upgt.c b/sys/dev/usb/if_upgt.c
index a7496e3319f..3981c81c901 100644
--- a/sys/dev/usb/if_upgt.c
+++ b/sys/dev/usb/if_upgt.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: if_upgt.c,v 1.38 2008/08/27 10:34:24 damien Exp $ */
+/* $OpenBSD: if_upgt.c,v 1.39 2008/10/14 18:01:53 naddy Exp $ */
/*
* Copyright (c) 2007 Marcus Glocker <mglocker@openbsd.org>
@@ -1780,14 +1780,12 @@ upgt_rx(struct upgt_softc *sc, uint8_t *data, int pkglen)
rxdesc = (struct upgt_lmac_rx_desc *)data;
/* create mbuf which is suitable for strict alignment archs */
- m = m_devget(rxdesc->data - ETHER_ALIGN, pkglen + ETHER_ALIGN, 0, ifp,
- NULL);
+ m = m_devget(rxdesc->data, pkglen, ETHER_ALIGN, ifp, NULL);
if (m == NULL) {
DPRINTF(1, "%s: could not create RX mbuf!\n", sc->sc_dev.dv_xname);
ifp->if_ierrors++;
return;
}
- m_adj(m, ETHER_ALIGN);
s = splnet();