ath9k: Fix function argument type
authorSujith Manoharan <c_manoha@qca.qualcomm.com>
Sat, 23 Aug 2014 07:59:22 +0000 (13:29 +0530)
committerJohn W. Linville <linville@tuxdriver.com>
Thu, 28 Aug 2014 18:49:38 +0000 (14:49 -0400)
ath9k_vif_iter() was earlier used as an iterator
routine when calling a mac80211 utility. This is no
longer the case and hence we can mention the argument
type explicitly.

Signed-off-by: Sujith Manoharan <c_manoha@qca.qualcomm.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
drivers/net/wireless/ath/ath9k/main.c

index e31f130..bc7a780 100644 (file)
@@ -893,9 +893,9 @@ static bool ath9k_uses_beacons(int type)
        }
 }
 
-static void ath9k_vif_iter(void *data, u8 *mac, struct ieee80211_vif *vif)
+static void ath9k_vif_iter(struct ath9k_vif_iter_data *iter_data,
+                          u8 *mac, struct ieee80211_vif *vif)
 {
-       struct ath9k_vif_iter_data *iter_data = data;
        int i;
 
        if (iter_data->has_hw_macaddr) {