[ath5k] Avoid unused variable warning in gcc 4.6
Reported-by: Ralph Giles <giles@thaumas.net> Tested-by: Ralph Giles <giles@thaumas.net> Signed-off-by: Michael Brown <mcb30@ipxe.org>
This commit is contained in:
parent
7f2903c623
commit
7bb8eca55b
|
@ -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;
|
||||
|
|
|
@ -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
|
||||
*/
|
||||
|
|
|
@ -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;
|
||||
|
||||
|
|
Reference in New Issue