From: Himangi Saraogi Date: Mon, 10 Mar 2014 18:30:01 +0000 (+0530) Subject: staging:rtl8192u: Remove unused variable X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=36af855e8134ba6384c7e3423b302e7a3ebdc2e8;p=GitHub%2FLineageOS%2Fandroid_kernel_motorola_exynos9610.git staging:rtl8192u: Remove unused variable This patch disgards the variable declaration and initialization of rsn_authen_cipher_suite as it is not used in anywhere throughout the kernel. Signed-off-by: Himangi Saraogi Acked-by: Paul E. McKenney Signed-off-by: Peter P Waskiewicz Jr --- diff --git a/drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c b/drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c index 9d4bc7b7f71f..277728afb3ef 100644 --- a/drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c +++ b/drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c @@ -24,15 +24,6 @@ #include "dot11d.h" -u8 rsn_authen_cipher_suite[16][4] = { - {0x00,0x0F,0xAC,0x00}, //Use group key, //Reserved - {0x00,0x0F,0xAC,0x01}, //WEP-40 //RSNA default - {0x00,0x0F,0xAC,0x02}, //TKIP //NONE //{used just as default} - {0x00,0x0F,0xAC,0x03}, //WRAP-historical - {0x00,0x0F,0xAC,0x04}, //CCMP - {0x00,0x0F,0xAC,0x05}, //WEP-104 -}; - short ieee80211_is_54g(const struct ieee80211_network *net) { return (net->rates_ex_len > 0) || (net->rates_len > 4);