]> git.baikalelectronics.ru Git - kernel.git/commitdiff
ath5k: avoid unneeded calibration error messages
authorFabio Rossi <rossi.f@inwind.it>
Wed, 8 Sep 2010 20:37:41 +0000 (22:37 +0200)
committerJohn W. Linville <linville@tuxdriver.com>
Tue, 14 Sep 2010 20:05:56 +0000 (16:05 -0400)
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>
drivers/net/wireless/ath/ath5k/phy.c

index 984ba92c7df3781fef83719fb8f07431e36ea9be..4932bf2f35eb5a995870d0e265ab192323b2052e 100644 (file)
@@ -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 */