diff options
author | 2015-04-13 08:45:48 +0000 | |
---|---|---|
committer | 2015-04-13 08:45:48 +0000 | |
commit | c35f95b812dab7979e23294211d4af0f7e2ce6c6 (patch) | |
tree | 5f7e499d6c144e6881e35c82d915c625fcb32854 /sys/dev/pci/if_sis.c | |
parent | ether_input() should not longer be called directly so convert to (diff) | |
download | wireguard-openbsd-c35f95b812dab7979e23294211d4af0f7e2ce6c6.tar.xz wireguard-openbsd-c35f95b812dab7979e23294211d4af0f7e2ce6c6.zip |
Now that if_input() set the receiving interface pointer on mbufs for us
there's no need to do it in m_devget(9).
Stop passing an ``ifp'' will help for upcoming interface pointer -> index
conversion.
While here remove unused ``ifp'' argument from m_clget(9) and kill two
birds^W layer violations in one commit.
ok henning@
Diffstat (limited to 'sys/dev/pci/if_sis.c')
-rw-r--r-- | sys/dev/pci/if_sis.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/sys/dev/pci/if_sis.c b/sys/dev/pci/if_sis.c index 2fd92614029..54014128003 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.125 2015/03/30 10:01:21 mpi Exp $ */ +/* $OpenBSD: if_sis.c,v 1.126 2015/04/13 08:45:48 mpi Exp $ */ /* * Copyright (c) 1997, 1998, 1999 * Bill Paul <wpaul@ctr.columbia.edu>. All rights reserved. @@ -1423,8 +1423,7 @@ sis_rxeof(struct sis_softc *sc) */ { struct mbuf *m0; - m0 = m_devget(mtod(m, char *), total_len, ETHER_ALIGN, - ifp); + m0 = m_devget(mtod(m, char *), total_len, ETHER_ALIGN); m_freem(m); if (m0 == NULL) { ifp->if_ierrors++; |