svn commit: r188582 - in head/sys/dev: iwn wpi

Sam Leffler sam at FreeBSD.org
Fri Feb 13 08:17:07 PST 2009


Author: sam
Date: Fri Feb 13 16:17:05 2009
New Revision: 188582
URL: http://svn.freebsd.org/changeset/base/188582

Log:
  remove references to ic_stats
  
  Spotted by:	Lucius Windschuh <lwindschuh at googlemail.com>

Modified:
  head/sys/dev/iwn/if_iwn.c
  head/sys/dev/wpi/if_wpi.c

Modified: head/sys/dev/iwn/if_iwn.c
==============================================================================
--- head/sys/dev/iwn/if_iwn.c	Fri Feb 13 16:00:19 2009	(r188581)
+++ head/sys/dev/iwn/if_iwn.c	Fri Feb 13 16:17:05 2009	(r188582)
@@ -1442,7 +1442,6 @@ iwn_rx_intr(struct iwn_softc *sc, struct
 	if (len < sizeof (struct ieee80211_frame)) {
 		DPRINTF(sc, IWN_DEBUG_RECV, "%s: frame too short: %d\n",
 		    __func__, len);
-		ic->ic_stats.is_rx_tooshort++;
 		ifp->if_ierrors++;
 		return;
 	}
@@ -1452,7 +1451,6 @@ iwn_rx_intr(struct iwn_softc *sc, struct
 	if (mnew == NULL) {
 		DPRINTF(sc, IWN_DEBUG_ANY, "%s: no mbuf to restock ring\n",
 		    __func__);
-		ic->ic_stats.is_rx_nobuf++;
 		ifp->if_ierrors++;
 		return;
 	}
@@ -1463,7 +1461,6 @@ iwn_rx_intr(struct iwn_softc *sc, struct
 		device_printf(sc->sc_dev,
 		    "%s: bus_dmamap_load failed, error %d\n", __func__, error);
 		m_freem(mnew);
-		ic->ic_stats.is_rx_nobuf++;	/* XXX need stat */
 		ifp->if_ierrors++;
 		return;
 	}

Modified: head/sys/dev/wpi/if_wpi.c
==============================================================================
--- head/sys/dev/wpi/if_wpi.c	Fri Feb 13 16:00:19 2009	(r188581)
+++ head/sys/dev/wpi/if_wpi.c	Fri Feb 13 16:17:05 2009	(r188582)
@@ -1478,7 +1478,6 @@ wpi_rx_intr(struct wpi_softc *sc, struct
 	if (mnew == NULL) {
 		DPRINTFN(WPI_DEBUG_RX, ("%s: no mbuf to restock ring\n",
 		    __func__));
-		ic->ic_stats.is_rx_nobuf++;
 		ifp->if_ierrors++;
 		return;
 	}
@@ -1489,7 +1488,6 @@ wpi_rx_intr(struct wpi_softc *sc, struct
 		device_printf(sc->sc_dev,
 		    "%s: bus_dmamap_load failed, error %d\n", __func__, error);
 		m_freem(mnew);
-		ic->ic_stats.is_rx_nobuf++;	/* XXX need stat */
 		ifp->if_ierrors++;
 		return;
 	}


More information about the svn-src-head mailing list