Skip to contentSkip to conversation

Staging: wilc1000: Remove unused function WILC_WFI_update_stats

PATCH New Bhumika Goyal 1 participant 1 message Feb 20, 2016 Staging

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 Staging: wilc1000: Remove unused function WILC_WFI_update_stats

This patch removes the function WILC_WFI_update_stats as it is not used anywhere in the kernel. Also remove its declaration from the header file. Grepped to find the occurences.

---
 drivers/staging/wilc1000/wilc_wfi_cfgoperations.c | 29 -----------------------
 drivers/staging/wilc1000/wilc_wfi_cfgoperations.h |  1 -
 2 files changed, 30 deletions(-)
drivers/staging/wilc1000/wilc_wfi_cfgoperations.c +0 -29
index d4705b7..60928c3 100644
@@ -2514,35 +2514,6 @@ static struct cfg80211_ops wilc_cfg80211_ops = {
 
 };
 
-int WILC_WFI_update_stats(struct wiphy *wiphy, u32 pktlen, u8 changed)
-{
-	struct wilc_priv *priv;
-
-	priv = wiphy_priv(wiphy);
-	switch (changed) {
-	case WILC_WFI_RX_PKT:
-	{
-		priv->netstats.rx_packets++;
-		priv->netstats.rx_bytes += pktlen;
-		priv->netstats.rx_time = get_jiffies_64();
-	}
-	break;
-
-	case WILC_WFI_TX_PKT:
-	{
-		priv->netstats.tx_packets++;
-		priv->netstats.tx_bytes += pktlen;
-		priv->netstats.tx_time = get_jiffies_64();
-
-	}
-	break;
-
-	default:
-		break;
-	}
-	return 0;
-}
-
 static struct wireless_dev *WILC_WFI_CfgAlloc(void)
 {
 	struct wireless_dev *wdev;
drivers/staging/wilc1000/wilc_wfi_cfgoperations.h +0 -1
index ab53d9d..85a3810 100644
@@ -12,7 +12,6 @@
 
 struct wireless_dev *wilc_create_wiphy(struct net_device *net, struct device *dev);
 void wilc_free_wiphy(struct net_device *net);
-int WILC_WFI_update_stats(struct wiphy *wiphy, u32 pktlen, u8 changed);
 int wilc_deinit_host_int(struct net_device *net);
 int wilc_init_host_int(struct net_device *net);
 void WILC_WFI_monitor_rx(u8 *buff, u32 size);
Signature · 1 line
1.9.1