diff options
author | Fabio Rossi <rossi.f@inwind.it> | 2010-09-09 00:37:41 +0400 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2010-09-15 00:05:56 +0400 |
commit | 516c6e1f52a09fb2e7024101db3f0375f65670df (patch) | |
tree | 8e653ded7aaba1a27baabfd9d373e620044a8694 /drivers/net/wireless/ath/ath5k/phy.c | |
parent | 65b7fc97473656eb35b6b58a22c7cef4a99d9e35 (diff) | |
download | linux-516c6e1f52a09fb2e7024101db3f0375f65670df.tar.xz |
ath5k: avoid unneeded calibration error messages
Don't generate calibration errors messages when not needed.
Signed-off-by: Fabio Rossi <rossi.f@inwind.it>
Acked-by: Bruno Randolf <br1@einfach.org>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net/wireless/ath/ath5k/phy.c')
-rw-r--r-- | drivers/net/wireless/ath/ath5k/phy.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/wireless/ath/ath5k/phy.c b/drivers/net/wireless/ath/ath5k/phy.c index 984ba92c7df3..4932bf2f35eb 100644 --- a/drivers/net/wireless/ath/ath5k/phy.c +++ b/drivers/net/wireless/ath/ath5k/phy.c @@ -1377,7 +1377,7 @@ ath5k_hw_rf511x_iq_calibrate(struct ath5k_hw *ah) /* protect against divide by 0 and loss of sign bits */ if (i_coffd == 0 || q_coffd < 2) - return -1; + return 0; i_coff = (-iq_corr) / i_coffd; i_coff = clamp(i_coff, -32, 31); /* signed 6 bit */ |