aboutsummaryrefslogtreecommitdiffstats
path: root/drivers
diff options
context:
space:
mode:
Diffstat (limited to 'drivers')
-rw-r--r--drivers/net/wireless/ath/ath5k/phy.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/net/wireless/ath/ath5k/phy.c b/drivers/net/wireless/ath/ath5k/phy.c
index d0d1c350025a..a876ca8d69ef 100644
--- a/drivers/net/wireless/ath/ath5k/phy.c
+++ b/drivers/net/wireless/ath/ath5k/phy.c
@@ -1897,6 +1897,9 @@ ath5k_get_linear_pcdac_min(const u8 *stepL, const u8 *stepR,
1897 s16 min_pwrL, min_pwrR; 1897 s16 min_pwrL, min_pwrR;
1898 s16 pwr_i; 1898 s16 pwr_i;
1899 1899
1900 if (WARN_ON(stepL[0] == stepL[1] || stepR[0] == stepR[1]))
1901 return 0;
1902
1900 if (pwrL[0] == pwrL[1]) 1903 if (pwrL[0] == pwrL[1])
1901 min_pwrL = pwrL[0]; 1904 min_pwrL = pwrL[0];
1902 else { 1905 else {