ath9k: remove unused function ath9k_hw_keyisvalid
authorJohn W. Linville <linville@tuxdriver.com>
Tue, 29 Jun 2010 19:20:49 +0000 (15:20 -0400)
committerJohn W. Linville <linville@tuxdriver.com>
Tue, 29 Jun 2010 19:20:49 +0000 (15:20 -0400)
Reported-by: Johannes Berg <johannes@sipsolutions.net>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
drivers/net/wireless/ath/ath9k/hw.c
drivers/net/wireless/ath/ath9k/hw.h

index 1ed144038c36d0b3e2e8b153537853bb4066cd5f..9d22444dd456b60bfce9a49a93fced6eeb1e07a6 100644 (file)
@@ -1737,17 +1737,6 @@ bool ath9k_hw_set_keycache_entry(struct ath_hw *ah, u16 entry,
 }
 EXPORT_SYMBOL(ath9k_hw_set_keycache_entry);
 
-bool ath9k_hw_keyisvalid(struct ath_hw *ah, u16 entry)
-{
-       if (entry < ah->caps.keycache_size) {
-               u32 val = REG_READ(ah, AR_KEYTABLE_MAC1(entry));
-               if (val & AR_KEYTABLE_VALID)
-                       return true;
-       }
-       return false;
-}
-EXPORT_SYMBOL(ath9k_hw_keyisvalid);
-
 /******************************/
 /* Power Management (Chipset) */
 /******************************/
index e9578a4c912f510b713f4e6248dbbfd7eb06ca97..f0e0cc9a9d784b6a25b5cf4498bc02441cb15f21 100644 (file)
@@ -863,7 +863,6 @@ bool ath9k_hw_keysetmac(struct ath_hw *ah, u16 entry, const u8 *mac);
 bool ath9k_hw_set_keycache_entry(struct ath_hw *ah, u16 entry,
                                 const struct ath9k_keyval *k,
                                 const u8 *mac);
-bool ath9k_hw_keyisvalid(struct ath_hw *ah, u16 entry);
 
 /* GPIO / RFKILL / Antennae */
 void ath9k_hw_cfg_gpio_input(struct ath_hw *ah, u32 gpio);