]> git.ipfire.org Git - thirdparty/ipxe.git/commitdiff
[ath5k] Avoid unused variable warning in gcc 4.6
authorMichael Brown <mcb30@ipxe.org>
Wed, 16 Mar 2011 19:54:52 +0000 (19:54 +0000)
committerMichael Brown <mcb30@ipxe.org>
Wed, 16 Mar 2011 19:54:52 +0000 (19:54 +0000)
Reported-by: Ralph Giles <giles@thaumas.net>
Tested-by: Ralph Giles <giles@thaumas.net>
Signed-off-by: Michael Brown <mcb30@ipxe.org>
src/drivers/net/ath5k/ath5k_phy.c
src/drivers/net/ath5k/ath5k_qcu.c
src/drivers/net/ath5k/ath5k_reset.c

index dad7060237b42f818709efd49cdd01ea1cc1b398..7891d39eaad34ac858574862895f53e76ae70f9e 100644 (file)
@@ -214,7 +214,6 @@ static void ath5k_hw_request_rfgain_probe(struct ath5k_hw *ah)
 static u32 ath5k_hw_rf_gainf_corr(struct ath5k_hw *ah)
 {
        u32 mix, step;
-       u32 *rf;
        const struct ath5k_gain_opt *go;
        const struct ath5k_gain_opt_step *g_step;
        const struct ath5k_rf_reg *rf_regs;
@@ -233,7 +232,6 @@ static u32 ath5k_hw_rf_gainf_corr(struct ath5k_hw *ah)
        if (ah->ah_rf_banks == NULL)
                return 0;
 
-       rf = ah->ah_rf_banks;
        ah->ah_gain.g_f_corr = 0;
 
        /* No VGA (Variable Gain Amplifier) override, skip */
@@ -272,13 +270,10 @@ static int ath5k_hw_rf_check_gainf_readback(struct ath5k_hw *ah)
 {
        const struct ath5k_rf_reg *rf_regs;
        u32 step, mix_ovr, level[4];
-       u32 *rf;
 
        if (ah->ah_rf_banks == NULL)
                return 0;
 
-       rf = ah->ah_rf_banks;
-
        if (ah->ah_radio == AR5K_RF5111) {
 
                rf_regs = rf_regs_5111;
index ffa8b4eb0568aad90201e2d2df0ba1417133ca27..e38dba9e2f3db763cc4408e1badcca736d7d3d73 100644 (file)
@@ -55,12 +55,8 @@ int ath5k_hw_set_tx_queueprops(struct ath5k_hw *ah,
 int ath5k_hw_setup_tx_queue(struct ath5k_hw *ah, enum ath5k_tx_queue queue_type,
                struct ath5k_txq_info *queue_info)
 {
-       unsigned int queue;
        int ret;
 
-       /* We only use one queue */
-       queue = 0;
-
        /*
         * Setup internal queue structure
         */
index e1eb71304cbc96dffedf949ccfbd090cfa9ee66c..2f36a4e9a04871afdfd18e977c126d24191b2a77 100644 (file)
@@ -698,7 +698,7 @@ static void ath5k_hw_commit_eeprom_settings(struct ath5k_hw *ah,
 int ath5k_hw_reset(struct ath5k_hw *ah,
        struct net80211_channel *channel, int change_channel)
 {
-       u32 s_seq[10], s_ant, s_led[3], staid1_flags, tsf_up, tsf_lo;
+       u32 s_seq[10], s_ant, s_led[3], staid1_flags;
        u32 phy_tst1;
        u8 mode, freq, ee_mode, ant[2];
        int i, ret;
@@ -706,8 +706,6 @@ int ath5k_hw_reset(struct ath5k_hw *ah,
        s_ant = 0;
        ee_mode = 0;
        staid1_flags = 0;
-       tsf_up = 0;
-       tsf_lo = 0;
        freq = 0;
        mode = 0;