summaryrefslogtreecommitdiff
path: root/sys/kern/uipc_mbuf.c
diff options
context:
space:
mode:
Diffstat (limited to 'sys/kern/uipc_mbuf.c')
-rw-r--r--sys/kern/uipc_mbuf.c11
1 files changed, 3 insertions, 8 deletions
diff --git a/sys/kern/uipc_mbuf.c b/sys/kern/uipc_mbuf.c
index fdc4b887c32..774a5e16ffd 100644
--- a/sys/kern/uipc_mbuf.c
+++ b/sys/kern/uipc_mbuf.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: uipc_mbuf.c,v 1.174 2013/08/08 23:25:06 syl Exp $ */
+/* $OpenBSD: uipc_mbuf.c,v 1.175 2013/08/21 05:21:45 dlg Exp $ */
/* $NetBSD: uipc_mbuf.c,v 1.15.4.1 1996/06/13 17:11:44 cgd Exp $ */
/*
@@ -1168,8 +1168,7 @@ extpacket:
* Routine to copy from device local memory into mbufs.
*/
struct mbuf *
-m_devget(char *buf, int totlen, int off, struct ifnet *ifp,
- void (*copy)(const void *, void *, size_t))
+m_devget(char *buf, int totlen, int off, struct ifnet *ifp)
{
struct mbuf *m;
struct mbuf *top, **mp;
@@ -1224,11 +1223,7 @@ m_devget(char *buf, int totlen, int off, struct ifnet *ifp,
}
m->m_len = len = min(totlen, len);
-
- if (copy)
- copy(buf, mtod(m, caddr_t), (size_t)len);
- else
- bcopy(buf, mtod(m, caddr_t), (size_t)len);
+ memcpy(mtod(m, void *), buf, (size_t)len);
buf += len;
*mp = m;