diff mbox

[OPW,kernel,v2,05/24] staging: rtl8187se: Deleted 'rsn_authen_cipher_suite' and ext_ieee80211_send_beacon_wq functions

Message ID 8d76cded59a07bf31fe3fc402b63d2f8f8493f99.1394827592.git.anarey@gmail.com
State New, archived
Headers show

Commit Message

Ana Rey March 14, 2014, 8:15 p.m. UTC
After the next warning messages by sparse tools:
drivers/staging/rtl8187se/ieee80211/ieee80211_softmac.c:27:11: warning: ‘rsn_authen_cipher_suite’ defined but not used [-Wunused-variable]
drivers/staging/rtl8187se/ieee80211/ieee80211_softmac.c:327:13: warning: ‘ext_ieee80211_send_beacon_wq’ defined but not used [-Wunused-function]

And a search without result, I decided to delete both.

Signed-off-by: Ana Rey <anarey@gmail.com>
---
 .../staging/rtl8187se/ieee80211/ieee80211_softmac.c   | 19 -------------------
 1 file changed, 19 deletions(-)

Comments

Bob Copeland March 15, 2014, 8:38 p.m. UTC | #1
On Fri, Mar 14, 2014 at 09:15:56PM +0100, Ana Rey wrote:
> After the next warning messages by sparse tools:
> drivers/staging/rtl8187se/ieee80211/ieee80211_softmac.c:27:11: warning: ‘rsn_authen_cipher_suite’ defined but not used [-Wunused-variable]
> drivers/staging/rtl8187se/ieee80211/ieee80211_softmac.c:327:13: warning: ‘ext_ieee80211_send_beacon_wq’ defined but not used [-Wunused-function]
> 
> And a search without result, I decided to delete both.

How you got there or other explanatory material can go in the
changelog after the "---" before the diffstat.  Here, you should
just say something like:

    Remove unused functions rsn_authen_cipher_suite() and
    ext_ieee80211_send_beacon_wq() from ieee80211_softmac.c.

    Fixes sparse warnings:
        [sparse warnings]
diff mbox

Patch

diff --git a/drivers/staging/rtl8187se/ieee80211/ieee80211_softmac.c b/drivers/staging/rtl8187se/ieee80211/ieee80211_softmac.c
index afbc94f..dee2bf1 100644
--- a/drivers/staging/rtl8187se/ieee80211/ieee80211_softmac.c
+++ b/drivers/staging/rtl8187se/ieee80211/ieee80211_softmac.c
@@ -315,25 +315,6 @@  inline struct sk_buff *ieee80211_probe_req(struct ieee80211_device *ieee)
 
 struct sk_buff *ieee80211_get_beacon_(struct ieee80211_device *ieee);
 
-static void ext_ieee80211_send_beacon_wq(struct ieee80211_device *ieee)
-{
-	struct sk_buff *skb;
-
-	skb = ieee80211_get_beacon_(ieee);
-
-	if (skb){
-		softmac_mgmt_xmit(skb, ieee);
-		ieee->softmac_stats.tx_beacons++;
-		dev_kfree_skb_any(skb);
-	}
-
-	ieee->beacon_timer.expires = jiffies +
-		(MSECS( ieee->current_network.beacon_interval -5));
-
-	if(ieee->beacon_txing)
-		add_timer(&ieee->beacon_timer);
-}
-
 static void ieee80211_send_beacon(struct ieee80211_device *ieee)
 {
 	struct sk_buff *skb;