diff options
author | Bhumika Goyal <bhumirks@gmail.com> | 2016-02-20 23:30:25 +0530 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2016-02-20 14:43:48 -0800 |
commit | 5bc32160c543de5cab9bc38cc048e1334e881b98 (patch) | |
tree | 4131d018b2f60815fc717b6a9b33d92570cbeb32 /drivers/staging/wilc1000/wilc_wfi_cfgoperations.c | |
parent | 541ac71337883f46cb8e91c09c1c588bf7c4ac85 (diff) | |
download | linux-5bc32160c543de5cab9bc38cc048e1334e881b98.tar.gz linux-5bc32160c543de5cab9bc38cc048e1334e881b98.tar.xz |
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.
Signed-off-by: Bhumika Goyal <bhumirks@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/staging/wilc1000/wilc_wfi_cfgoperations.c')
-rw-r--r-- | drivers/staging/wilc1000/wilc_wfi_cfgoperations.c | 29 |
1 files changed, 0 insertions, 29 deletions
diff --git a/drivers/staging/wilc1000/wilc_wfi_cfgoperations.c b/drivers/staging/wilc1000/wilc_wfi_cfgoperations.c index 839af1f1326a..76f4375bd88d 100644 --- a/drivers/staging/wilc1000/wilc_wfi_cfgoperations.c +++ b/drivers/staging/wilc1000/wilc_wfi_cfgoperations.c @@ -2517,35 +2517,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; |