Skip to content

Commit

Permalink
ath9k_htc: remove use of common->ani.noise_floor
Browse files Browse the repository at this point in the history
It is unused aside from a single redundant debug message

Signed-off-by: Felix Fietkau <nbd@openwrt.org>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
  • Loading branch information
Felix Fietkau authored and John W. Linville committed Oct 5, 2010
1 parent 5c89569 commit 35ecfe0
Showing 1 changed file with 1 addition and 12 deletions.
13 changes: 1 addition & 12 deletions drivers/net/wireless/ath/ath9k/htc_drv_main.c
Original file line number Diff line number Diff line change
Expand Up @@ -760,23 +760,12 @@ void ath9k_ani_work(struct work_struct *work)
ath9k_hw_ani_monitor(ah, ah->curchan);

/* Perform calibration if necessary */
if (longcal || shortcal) {
if (longcal || shortcal)
common->ani.caldone =
ath9k_hw_calibrate(ah, ah->curchan,
common->rx_chainmask,
longcal);

if (longcal)
common->ani.noise_floor =
ath9k_hw_getchan_noise(ah, ah->curchan);

ath_print(common, ATH_DBG_ANI,
" calibrate chan %u/%x nf: %d\n",
ah->curchan->channel,
ah->curchan->channelFlags,
common->ani.noise_floor);
}

ath9k_htc_ps_restore(priv);
}

Expand Down

0 comments on commit 35ecfe0

Please sign in to comment.