ath9k: Remove unused variables
authorSujith Manoharan <c_manoha@qca.qualcomm.com>
Wed, 14 Mar 2012 09:10:31 +0000 (14:40 +0530)
committerJohn W. Linville <linville@tuxdriver.com>
Thu, 15 Mar 2012 17:40:27 +0000 (13:40 -0400)
Signed-off-by: Sujith Manoharan <c_manoha@qca.qualcomm.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
drivers/net/wireless/ath/ath9k/ath9k.h
drivers/net/wireless/ath/ath9k/main.c

index 3d8e51cd5d8f1bbd9227fbf394433d3742193753..fa5eb3080e244b7156b787b746e22fad6157d63b 100644 (file)
@@ -624,8 +624,6 @@ struct ath_softc {
        struct ieee80211_hw *hw;
        struct device *dev;
 
-       int chan_idx;
-       int chan_is_ht;
        struct survey_info *cur_survey;
        struct survey_info survey[ATH9K_NUM_CHANNELS];
 
index db38a4e5a6e39369ebc39e8312bf6dcf128feed5..fe1d7961eefdc4d8bb6d395a461eace91ae38d9f 100644 (file)
@@ -995,12 +995,8 @@ static int ath9k_start(struct ieee80211_hw *hw)
                curchan->center_freq);
 
        ath9k_ps_wakeup(sc);
-
        mutex_lock(&sc->mutex);
 
-       /* setup initial channel */
-       sc->chan_idx = curchan->hw_value;
-
        init_channel = ath9k_cmn_get_curchannel(hw, ah);
 
        /* Reset SERDES registers */