]> git.baikalelectronics.ru Git - kernel.git/commit
ath9k: Remove unnecessary check
authorSujith Manoharan <c_manoha@qca.qualcomm.com>
Tue, 21 Jan 2014 03:46:43 +0000 (09:16 +0530)
committerJohn W. Linville <linville@tuxdriver.com>
Wed, 12 Feb 2014 20:31:49 +0000 (15:31 -0500)
commit88fb3be9c0e30953ce5d5cca13c8daf975440b80
tree2a3c2c4437759f7bc6e87fd2ef90eb315786a071
parent5504da12e6ff40d34cdedf9973c52c2b596cefd8
ath9k: Remove unnecessary check

The commit "ath9k: Fix IQ calibration" added a check
to ensure that valid i2_p_q2_a0_d1 values are not discarded.
But since it is masked with 0xfff earlier, the codepath
will not be executed.

The earlier case where all values above 0x800 were considered
invalid is incorrect, since the HW can return valid values
between 0x800 and 0xfff.

Cc: Kai Shi <kaishi@qca.qualcomm.com>
Reported-by: Alex Hacker <hacker@epn.ru>
Signed-off-by: Sujith Manoharan <c_manoha@qca.qualcomm.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
drivers/net/wireless/ath/ath9k/ar9003_calib.c