diff options
author | 2014-07-08 00:17:44 +0000 | |
---|---|---|
committer | 2014-07-08 00:17:44 +0000 | |
commit | 8f6c60cf80f9bb9949f9ac04226a2eaeeedea8c3 (patch) | |
tree | b5c2aa32e4cabd1fd8bdcbf46897a9f468d99b89 | |
parent | em_rxeof is only called from em_intr, and only if IFF_RUNNING is (diff) | |
download | wireguard-openbsd-8f6c60cf80f9bb9949f9ac04226a2eaeeedea8c3.tar.xz wireguard-openbsd-8f6c60cf80f9bb9949f9ac04226a2eaeeedea8c3.zip |
in em_rxeof, when the ifp stack var is declared its initted to the
right value out of the softc. then its assigned the same value again
after the rest of the var decls.
well, it used to be. not after this commit.
-rw-r--r-- | sys/dev/pci/if_em.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/sys/dev/pci/if_em.c b/sys/dev/pci/if_em.c index fa0feea0175..ce0adcb6e1a 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.282 2014/07/08 00:11:50 dlg Exp $ */ +/* $OpenBSD: if_em.c,v 1.283 2014/07/08 00:17:44 dlg Exp $ */ /* $FreeBSD: if_em.c,v 1.46 2004/09/29 18:28:28 mlaier Exp $ */ #include <dev/pci/if_em.h> @@ -2848,8 +2848,6 @@ em_rxeof(struct em_softc *sc) struct em_buffer *pkt; u_int8_t status; - ifp = &sc->interface_data.ac_if; - i = sc->next_rx_desc_to_check; while (sc->rx_ndescs > 0) { |