staging: brcm80211: removed unused struct net_device_stats related code
authorRoland Vossen <rvossen@broadcom.com>
Fri, 13 May 2011 09:59:32 +0000 (11:59 +0200)
committerGreg Kroah-Hartman <gregkh@suse.de>
Tue, 17 May 2011 19:12:27 +0000 (12:12 -0700)
Code cleanup. Variables were set but never read.

Cc: devel@linuxdriverproject.org
Cc: linux-wireless@vger.kernel.org
Reviewed-by: Henry Ptasinski <henryp@broadcom.com>
Reviewed-by: Brett Rudley <brudley@broadcom.com>
Signed-off-by: Arend van Spriel <arend@broadcom.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/staging/brcm80211/brcmsmac/wl_mac80211.c
drivers/staging/brcm80211/brcmsmac/wl_mac80211.h

index 5c988cd1ee73e5d05c145705544336247ecf86c3..df98bb857f98a8a69424dcc6cf5faba2a2192ae1 100644 (file)
@@ -1731,35 +1731,6 @@ void wl_free_timer(struct wl_info *wl, struct wl_timer *t)
  */
 static int wl_linux_watchdog(void *ctx)
 {
-       struct wl_info *wl = (struct wl_info *) ctx;
-       struct wl_cnt *cnt;
-       struct net_device_stats *stats = NULL;
-       uint id;
-       /* refresh stats */
-       if (wl->pub->up) {
-               cnt = wl->pub->_cnt;
-               id = 1 - wl->stats_id;
-               stats = &wl->stats_watchdog[id];
-               stats->rx_packets = cnt->rxframe;
-               stats->tx_packets = cnt->txframe;
-               stats->rx_bytes = cnt->rxbyte;
-               stats->tx_bytes = cnt->txbyte;
-               stats->rx_errors = cnt->rxerror;
-               stats->tx_errors = cnt->txerror;
-               stats->collisions = 0;
-
-               stats->rx_length_errors = 0;
-               stats->rx_over_errors = cnt->rxoflo;
-               stats->rx_crc_errors = cnt->rxcrc;
-               stats->rx_frame_errors = 0;
-               stats->rx_fifo_errors = cnt->rxoflo;
-               stats->rx_missed_errors = 0;
-
-               stats->tx_fifo_errors = cnt->txuflo;
-
-               wl->stats_id = id;
-       }
-
        return 0;
 }
 
index e7e95169219b178e0ff9d55902b0b1fc8b575afb..e703d8bb94d6043dc6e491f2431be69ab27f944d 100644 (file)
@@ -67,10 +67,6 @@ struct wl_info {
 #ifdef LINUXSTA_PS
        u32 pci_psstate[16];    /* pci ps-state save/restore */
 #endif
-       /* RPC, handle, lock, txq, workitem */
-       uint stats_id;          /* the current set of stats */
-       /* ping-pong stats counters updated by Linux watchdog */
-       struct net_device_stats stats_watchdog[2];
        struct wl_firmware fw;
        struct wiphy *wiphy;
 };