From: Fabio Rossi Date: Wed, 8 Sep 2010 20:37:41 +0000 (+0200) Subject: ath5k: avoid unneeded calibration error messages X-Git-Tag: v3.12-rc1~8399^2~265^2^2~140 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=516c6e1f52a09fb2e7024101db3f0375f65670df;p=kernel%2Fkernel-generic.git ath5k: avoid unneeded calibration error messages Don't generate calibration errors messages when not needed. Signed-off-by: Fabio Rossi Acked-by: Bruno Randolf Signed-off-by: John W. Linville --- diff --git a/drivers/net/wireless/ath/ath5k/phy.c b/drivers/net/wireless/ath/ath5k/phy.c index 984ba92..4932bf2 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 */