diff options
author | 2013-08-21 05:21:42 +0000 | |
---|---|---|
committer | 2013-08-21 05:21:42 +0000 | |
commit | 232dfaf10d4f3245716b49d8b03e631c2ed173fc (patch) | |
tree | 62a59231592d31901276623aee3ee90c16c58fcf /sys/dev/pci/if_sis.c | |
parent | use a single line in usage() and SYNOPSIS and explain in text which (diff) | |
download | wireguard-openbsd-232dfaf10d4f3245716b49d8b03e631c2ed173fc.tar.xz wireguard-openbsd-232dfaf10d4f3245716b49d8b03e631c2ed173fc.zip |
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_sis.c')
-rw-r--r-- | sys/dev/pci/if_sis.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/dev/pci/if_sis.c b/sys/dev/pci/if_sis.c index 10c13e8b73f..b33fe005453 100644 --- a/sys/dev/pci/if_sis.c +++ b/sys/dev/pci/if_sis.c @@ -1,4 +1,4 @@ -/* $OpenBSD: if_sis.c,v 1.112 2013/08/07 01:06:37 bluhm Exp $ */ +/* $OpenBSD: if_sis.c,v 1.113 2013/08/21 05:21:44 dlg Exp $ */ /* * Copyright (c) 1997, 1998, 1999 * Bill Paul <wpaul@ctr.columbia.edu>. All rights reserved. @@ -1402,7 +1402,7 @@ sis_rxeof(struct sis_softc *sc) { struct mbuf *m0; m0 = m_devget(mtod(m, char *), total_len, ETHER_ALIGN, - ifp, NULL); + ifp); m_freem(m); if (m0 == NULL) { ifp->if_ierrors++; |