diff options
author | David Gwynne <dlg@cvs.openbsd.org> | 2014-07-08 00:11:51 +0000 |
---|---|---|
committer | David Gwynne <dlg@cvs.openbsd.org> | 2014-07-08 00:11:51 +0000 |
commit | 3fa4404d07630a4870d28ee01ed3294646656c9f (patch) | |
tree | c746416dee682502af93ce2dc624f21435a9364c /sys | |
parent | 5a1f8b249a3238800919b41a93303c1adf41bcfe (diff) |
em_rxeof is only called from em_intr, and only if IFF_RUNNING is
set. em_rxeof doesnt have to check that flag again.
Diffstat (limited to 'sys')
-rw-r--r-- | sys/dev/pci/if_em.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/sys/dev/pci/if_em.c b/sys/dev/pci/if_em.c index ceb3720ac78..fa0feea0175 100644 --- a/sys/dev/pci/if_em.c +++ b/sys/dev/pci/if_em.c @@ -31,7 +31,7 @@ POSSIBILITY OF SUCH DAMAGE. ***************************************************************************/ -/* $OpenBSD: if_em.c,v 1.281 2014/07/07 23:12:00 dlg Exp $ */ +/* $OpenBSD: if_em.c,v 1.282 2014/07/08 00:11:50 dlg Exp $ */ /* $FreeBSD: if_em.c,v 1.46 2004/09/29 18:28:28 mlaier Exp $ */ #include <dev/pci/if_em.h> @@ -2850,9 +2850,6 @@ em_rxeof(struct em_softc *sc) ifp = &sc->interface_data.ac_if; - if (!ISSET(ifp->if_flags, IFF_RUNNING)) - return; - i = sc->next_rx_desc_to_check; while (sc->rx_ndescs > 0) { |