summaryrefslogtreecommitdiff
path: root/sys/dev/pci/if_sk.c
diff options
context:
space:
mode:
authorDavid Gwynne <dlg@cvs.openbsd.org>2013-08-21 05:21:47 +0000
committerDavid Gwynne <dlg@cvs.openbsd.org>2013-08-21 05:21:47 +0000
commit6c6287fe271247607d595cdf2777af3e65547680 (patch)
treea8c0feda16a4dbe1b9ec8258e9a50ceaccf30e16 /sys/dev/pci/if_sk.c
parenta83165bd346e9097817cfc2dbbdf05990cc2fa80 (diff)
get rid of the copy argument in m_devget that let you provide an
alternative to bcopy since noone uses it. while there use memcpy instead of bcopy because we know the memory cannot overlap. ok henning@ matthew@ mikeb@ deraadt@
Diffstat (limited to 'sys/dev/pci/if_sk.c')
-rw-r--r--sys/dev/pci/if_sk.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/dev/pci/if_sk.c b/sys/dev/pci/if_sk.c
index 2cbb83fdbac..85269227228 100644
--- a/sys/dev/pci/if_sk.c
+++ b/sys/dev/pci/if_sk.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: if_sk.c,v 1.165 2013/08/07 01:06:37 bluhm Exp $ */
+/* $OpenBSD: if_sk.c,v 1.166 2013/08/21 05:21:44 dlg Exp $ */
/*
* Copyright (c) 1997, 1998, 1999, 2000
@@ -1740,7 +1740,7 @@ sk_rxeof(struct sk_if_softc *sc_if)
if (sk_newbuf(sc_if, cur, NULL, dmamap) == ENOBUFS) {
struct mbuf *m0;
m0 = m_devget(mtod(m, char *), total_len, ETHER_ALIGN,
- ifp, NULL);
+ ifp);
sk_newbuf(sc_if, cur, m, dmamap);
if (m0 == NULL) {
ifp->if_ierrors++;