|
@@ -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;
|