Procházet zdrojové kódy

[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 před 13 roky
rodič
revize
7bb8eca55b

+ 0
- 5
src/drivers/net/ath5k/ath5k_phy.c Zobrazit soubor

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

+ 0
- 4
src/drivers/net/ath5k/ath5k_qcu.c Zobrazit soubor

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

+ 1
- 3
src/drivers/net/ath5k/ath5k_reset.c Zobrazit soubor

@@ -698,7 +698,7 @@ static void ath5k_hw_commit_eeprom_settings(struct ath5k_hw *ah,
698 698
 int ath5k_hw_reset(struct ath5k_hw *ah,
699 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 702
 	u32 phy_tst1;
703 703
 	u8 mode, freq, ee_mode, ant[2];
704 704
 	int i, ret;
@@ -706,8 +706,6 @@ int ath5k_hw_reset(struct ath5k_hw *ah,
706 706
 	s_ant = 0;
707 707
 	ee_mode = 0;
708 708
 	staid1_flags = 0;
709
-	tsf_up = 0;
710
-	tsf_lo = 0;
711 709
 	freq = 0;
712 710
 	mode = 0;
713 711
 

Načítá se…
Zrušit
Uložit