Browse Source

[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>
tags/v1.20.1
Michael Brown 13 years ago
parent
commit
7bb8eca55b

+ 0
- 5
src/drivers/net/ath5k/ath5k_phy.c View File

214
 static u32 ath5k_hw_rf_gainf_corr(struct ath5k_hw *ah)
214
 static u32 ath5k_hw_rf_gainf_corr(struct ath5k_hw *ah)
215
 {
215
 {
216
 	u32 mix, step;
216
 	u32 mix, step;
217
-	u32 *rf;
218
 	const struct ath5k_gain_opt *go;
217
 	const struct ath5k_gain_opt *go;
219
 	const struct ath5k_gain_opt_step *g_step;
218
 	const struct ath5k_gain_opt_step *g_step;
220
 	const struct ath5k_rf_reg *rf_regs;
219
 	const struct ath5k_rf_reg *rf_regs;
233
 	if (ah->ah_rf_banks == NULL)
232
 	if (ah->ah_rf_banks == NULL)
234
 		return 0;
233
 		return 0;
235
 
234
 
236
-	rf = ah->ah_rf_banks;
237
 	ah->ah_gain.g_f_corr = 0;
235
 	ah->ah_gain.g_f_corr = 0;
238
 
236
 
239
 	/* No VGA (Variable Gain Amplifier) override, skip */
237
 	/* No VGA (Variable Gain Amplifier) override, skip */
272
 {
270
 {
273
 	const struct ath5k_rf_reg *rf_regs;
271
 	const struct ath5k_rf_reg *rf_regs;
274
 	u32 step, mix_ovr, level[4];
272
 	u32 step, mix_ovr, level[4];
275
-	u32 *rf;
276
 
273
 
277
 	if (ah->ah_rf_banks == NULL)
274
 	if (ah->ah_rf_banks == NULL)
278
 		return 0;
275
 		return 0;
279
 
276
 
280
-	rf = ah->ah_rf_banks;
281
-
282
 	if (ah->ah_radio == AR5K_RF5111) {
277
 	if (ah->ah_radio == AR5K_RF5111) {
283
 
278
 
284
 		rf_regs = rf_regs_5111;
279
 		rf_regs = rf_regs_5111;

+ 0
- 4
src/drivers/net/ath5k/ath5k_qcu.c View File

55
 int ath5k_hw_setup_tx_queue(struct ath5k_hw *ah, enum ath5k_tx_queue queue_type,
55
 int ath5k_hw_setup_tx_queue(struct ath5k_hw *ah, enum ath5k_tx_queue queue_type,
56
 		struct ath5k_txq_info *queue_info)
56
 		struct ath5k_txq_info *queue_info)
57
 {
57
 {
58
-	unsigned int queue;
59
 	int ret;
58
 	int ret;
60
 
59
 
61
-	/* We only use one queue */
62
-	queue = 0;
63
-
64
 	/*
60
 	/*
65
 	 * Setup internal queue structure
61
 	 * Setup internal queue structure
66
 	 */
62
 	 */

+ 1
- 3
src/drivers/net/ath5k/ath5k_reset.c View File

698
 int ath5k_hw_reset(struct ath5k_hw *ah,
698
 int ath5k_hw_reset(struct ath5k_hw *ah,
699
 	struct net80211_channel *channel, int change_channel)
699
 	struct net80211_channel *channel, int change_channel)
700
 {
700
 {
701
-	u32 s_seq[10], s_ant, s_led[3], staid1_flags, tsf_up, tsf_lo;
701
+	u32 s_seq[10], s_ant, s_led[3], staid1_flags;
702
 	u32 phy_tst1;
702
 	u32 phy_tst1;
703
 	u8 mode, freq, ee_mode, ant[2];
703
 	u8 mode, freq, ee_mode, ant[2];
704
 	int i, ret;
704
 	int i, ret;
706
 	s_ant = 0;
706
 	s_ant = 0;
707
 	ee_mode = 0;
707
 	ee_mode = 0;
708
 	staid1_flags = 0;
708
 	staid1_flags = 0;
709
-	tsf_up = 0;
710
-	tsf_lo = 0;
711
 	freq = 0;
709
 	freq = 0;
712
 	mode = 0;
710
 	mode = 0;
713
 
711
 

Loading…
Cancel
Save