diff options
author | John Daiker <daikerjohn@gmail.com> | 2008-10-17 15:16:00 -0400 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2008-10-31 19:00:40 -0400 |
commit | 0bbac08f0a23898787978c0b405474e453e9824c (patch) | |
tree | d4931a377703853406e2328c612062439c73e19c /drivers/net/wireless/ath5k/phy.c | |
parent | 93da9cc17c5ae8a751886fd4732db89ad5e9bdb9 (diff) |
ath5k: reduce checkpatch.pl errors
A few changes to reduce checkpatch.pl errors in the ath5k driver. For
the most part, I only fixed cosmetic things, and left the actual 'code
flow' untouched (hopefully)!
Diff is against wireless-testing HEAD.
Signed-off-by: John Daiker <daikerjohn@gmail.com>
Reviewed-by: Bob Copeland <me@bobcopeland.com>
Acked-by: Nick Kossifidis <mickflemm@gmail.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net/wireless/ath5k/phy.c')
-rw-r--r-- | drivers/net/wireless/ath5k/phy.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/drivers/net/wireless/ath5k/phy.c b/drivers/net/wireless/ath5k/phy.c index e43f6563e61a..69625bf4d11c 100644 --- a/drivers/net/wireless/ath5k/phy.c +++ b/drivers/net/wireless/ath5k/phy.c | |||
@@ -1412,7 +1412,8 @@ static int ath5k_hw_rf5112_rfregs(struct ath5k_hw *ah, | |||
1412 | rf_ini = rfregs_2112a; | 1412 | rf_ini = rfregs_2112a; |
1413 | rf_size = ARRAY_SIZE(rfregs_5112a); | 1413 | rf_size = ARRAY_SIZE(rfregs_5112a); |
1414 | if (mode < 2) { | 1414 | if (mode < 2) { |
1415 | ATH5K_ERR(ah->ah_sc,"invalid channel mode: %i\n",mode); | 1415 | ATH5K_ERR(ah->ah_sc, "invalid channel mode: %i\n", |
1416 | mode); | ||
1416 | return -EINVAL; | 1417 | return -EINVAL; |
1417 | } | 1418 | } |
1418 | mode = mode - 2; /*no a/turboa modes for 2112*/ | 1419 | mode = mode - 2; /*no a/turboa modes for 2112*/ |
@@ -1708,7 +1709,7 @@ enum ath5k_rfgain ath5k_hw_get_rf_gain(struct ath5k_hw *ah) | |||
1708 | if (ah->ah_radio >= AR5K_RF5112) { | 1709 | if (ah->ah_radio >= AR5K_RF5112) { |
1709 | ath5k_hw_rfregs_gainf_corr(ah); | 1710 | ath5k_hw_rfregs_gainf_corr(ah); |
1710 | ah->ah_gain.g_current = | 1711 | ah->ah_gain.g_current = |
1711 | ah->ah_gain.g_current>=ah->ah_gain.g_f_corr ? | 1712 | ah->ah_gain.g_current >= ah->ah_gain.g_f_corr ? |
1712 | (ah->ah_gain.g_current-ah->ah_gain.g_f_corr) : | 1713 | (ah->ah_gain.g_current-ah->ah_gain.g_f_corr) : |
1713 | 0; | 1714 | 0; |
1714 | } | 1715 | } |