diff options
author | David Gwynne <dlg@cvs.openbsd.org> | 2013-08-21 05:21:47 +0000 |
---|---|---|
committer | David Gwynne <dlg@cvs.openbsd.org> | 2013-08-21 05:21:47 +0000 |
commit | 6c6287fe271247607d595cdf2777af3e65547680 (patch) | |
tree | a8c0feda16a4dbe1b9ec8258e9a50ceaccf30e16 /sys/dev/pci/if_nge.c | |
parent | a83165bd346e9097817cfc2dbbdf05990cc2fa80 (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_nge.c')
-rw-r--r-- | sys/dev/pci/if_nge.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/dev/pci/if_nge.c b/sys/dev/pci/if_nge.c index 5c47a37cae7..bfc983d2f75 100644 --- a/sys/dev/pci/if_nge.c +++ b/sys/dev/pci/if_nge.c @@ -1,4 +1,4 @@ -/* $OpenBSD: if_nge.c,v 1.74 2013/08/07 01:06:36 bluhm Exp $ */ +/* $OpenBSD: if_nge.c,v 1.75 2013/08/21 05:21:44 dlg Exp $ */ /* * Copyright (c) 2001 Wind River Systems * Copyright (c) 1997, 1998, 1999, 2000, 2001 @@ -1295,7 +1295,7 @@ nge_rxeof(sc) if (nge_newbuf(sc, cur_rx, NULL) == ENOBUFS) { #endif m0 = m_devget(mtod(m, char *), total_len, - ETHER_ALIGN, ifp, NULL); + ETHER_ALIGN, ifp); nge_newbuf(sc, cur_rx, m); if (m0 == NULL) { ifp->if_ierrors++; |