diff options
author | Joe Perches <joe@perches.com> | 2010-05-14 03:19:28 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2010-05-14 03:19:28 -0400 |
commit | a4b770972b8f819e408d7cc3ae9637e15bff62f6 (patch) | |
tree | 62e3c413b084c106d750cf6cc0701709cde30100 /drivers/net/wireless/ath | |
parent | 21ce849ba5cc178740c6532ba3dded852296ad91 (diff) |
drivers/net: Remove unnecessary returns from void function()s
This patch removes from drivers/net/ all the unnecessary
return; statements that precede the last closing brace of
void functions.
It does not remove the returns that are immediately
preceded by a label as gcc doesn't like that.
It also does not remove null void functions with return.
Done via:
$ grep -rP --include=*.[ch] -l "return;\n}" net/ | \
xargs perl -i -e 'local $/ ; while (<>) { s/\n[ \t\n]+return;\n}/\n}/g; print; }'
with some cleanups by hand.
Compile tested x86 allmodconfig only.
Signed-off-by: Joe Perches <joe@perches.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/wireless/ath')
-rw-r--r-- | drivers/net/wireless/ath/ath5k/phy.c | 2 | ||||
-rw-r--r-- | drivers/net/wireless/ath/ath5k/reset.c | 3 | ||||
-rw-r--r-- | drivers/net/wireless/ath/ath9k/ar9003_calib.c | 1 | ||||
-rw-r--r-- | drivers/net/wireless/ath/ath9k/calib.c | 1 | ||||
-rw-r--r-- | drivers/net/wireless/ath/ath9k/eeprom.c | 2 | ||||
-rw-r--r-- | drivers/net/wireless/ath/ath9k/eeprom_def.c | 3 | ||||
-rw-r--r-- | drivers/net/wireless/ath/ath9k/htc_drv_txrx.c | 1 | ||||
-rw-r--r-- | drivers/net/wireless/ath/regd.c | 1 |
8 files changed, 0 insertions, 14 deletions
diff --git a/drivers/net/wireless/ath/ath5k/phy.c b/drivers/net/wireless/ath/ath5k/phy.c index 3ce9afba1d88..1b81c4778800 100644 --- a/drivers/net/wireless/ath/ath5k/phy.c +++ b/drivers/net/wireless/ath/ath5k/phy.c | |||
@@ -2145,8 +2145,6 @@ ath5k_get_chan_pcal_surrounding_piers(struct ath5k_hw *ah, | |||
2145 | done: | 2145 | done: |
2146 | *pcinfo_l = &pcinfo[idx_l]; | 2146 | *pcinfo_l = &pcinfo[idx_l]; |
2147 | *pcinfo_r = &pcinfo[idx_r]; | 2147 | *pcinfo_r = &pcinfo[idx_r]; |
2148 | |||
2149 | return; | ||
2150 | } | 2148 | } |
2151 | 2149 | ||
2152 | /* | 2150 | /* |
diff --git a/drivers/net/wireless/ath/ath5k/reset.c b/drivers/net/wireless/ath/ath5k/reset.c index 44bbbf2a6edd..307f80e83f94 100644 --- a/drivers/net/wireless/ath/ath5k/reset.c +++ b/drivers/net/wireless/ath/ath5k/reset.c | |||
@@ -627,7 +627,6 @@ static void ath5k_hw_set_sleep_clock(struct ath5k_hw *ah, bool enable) | |||
627 | 627 | ||
628 | AR5K_REG_WRITE_BITS(ah, AR5K_TSF_PARM, AR5K_TSF_PARM_INC, 1); | 628 | AR5K_REG_WRITE_BITS(ah, AR5K_TSF_PARM, AR5K_TSF_PARM_INC, 1); |
629 | } | 629 | } |
630 | return; | ||
631 | } | 630 | } |
632 | 631 | ||
633 | /* TODO: Half/Quarter rate */ | 632 | /* TODO: Half/Quarter rate */ |
@@ -883,8 +882,6 @@ static void ath5k_hw_commit_eeprom_settings(struct ath5k_hw *ah, | |||
883 | /* Heavy clipping -disable for now */ | 882 | /* Heavy clipping -disable for now */ |
884 | if (ah->ah_ee_version >= AR5K_EEPROM_VERSION_5_1) | 883 | if (ah->ah_ee_version >= AR5K_EEPROM_VERSION_5_1) |
885 | ath5k_hw_reg_write(ah, 0, AR5K_PHY_HEAVY_CLIP_ENABLE); | 884 | ath5k_hw_reg_write(ah, 0, AR5K_PHY_HEAVY_CLIP_ENABLE); |
886 | |||
887 | return; | ||
888 | } | 885 | } |
889 | 886 | ||
890 | /* | 887 | /* |
diff --git a/drivers/net/wireless/ath/ath9k/ar9003_calib.c b/drivers/net/wireless/ath/ath9k/ar9003_calib.c index 5fcafb460877..56a9e5fa6d66 100644 --- a/drivers/net/wireless/ath/ath9k/ar9003_calib.c +++ b/drivers/net/wireless/ath/ath9k/ar9003_calib.c | |||
@@ -726,7 +726,6 @@ static void ar9003_hw_tx_iq_cal(struct ath_hw *ah) | |||
726 | 726 | ||
727 | TX_IQ_CAL_FAILED: | 727 | TX_IQ_CAL_FAILED: |
728 | ath_print(common, ATH_DBG_CALIBRATE, "Tx IQ Cal failed\n"); | 728 | ath_print(common, ATH_DBG_CALIBRATE, "Tx IQ Cal failed\n"); |
729 | return; | ||
730 | } | 729 | } |
731 | 730 | ||
732 | static bool ar9003_hw_init_cal(struct ath_hw *ah, | 731 | static bool ar9003_hw_init_cal(struct ath_hw *ah, |
diff --git a/drivers/net/wireless/ath/ath9k/calib.c b/drivers/net/wireless/ath/ath9k/calib.c index 6982577043b8..07b8fa6fb62f 100644 --- a/drivers/net/wireless/ath/ath9k/calib.c +++ b/drivers/net/wireless/ath/ath9k/calib.c | |||
@@ -86,7 +86,6 @@ static void ath9k_hw_update_nfcal_hist_buffer(struct ath9k_nfcal_hist *h, | |||
86 | ath9k_hw_get_nf_hist_mid(h[i].nfCalBuffer); | 86 | ath9k_hw_get_nf_hist_mid(h[i].nfCalBuffer); |
87 | } | 87 | } |
88 | } | 88 | } |
89 | return; | ||
90 | } | 89 | } |
91 | 90 | ||
92 | static bool ath9k_hw_get_nf_thresh(struct ath_hw *ah, | 91 | static bool ath9k_hw_get_nf_thresh(struct ath_hw *ah, |
diff --git a/drivers/net/wireless/ath/ath9k/eeprom.c b/drivers/net/wireless/ath/ath9k/eeprom.c index bd9dff3293dc..ca8704a9d7ac 100644 --- a/drivers/net/wireless/ath/ath9k/eeprom.c +++ b/drivers/net/wireless/ath/ath9k/eeprom.c | |||
@@ -36,8 +36,6 @@ void ath9k_hw_analog_shift_rmw(struct ath_hw *ah, u32 reg, u32 mask, | |||
36 | 36 | ||
37 | if (ah->config.analog_shiftreg) | 37 | if (ah->config.analog_shiftreg) |
38 | udelay(100); | 38 | udelay(100); |
39 | |||
40 | return; | ||
41 | } | 39 | } |
42 | 40 | ||
43 | int16_t ath9k_hw_interpolate(u16 target, u16 srcLeft, u16 srcRight, | 41 | int16_t ath9k_hw_interpolate(u16 target, u16 srcLeft, u16 srcRight, |
diff --git a/drivers/net/wireless/ath/ath9k/eeprom_def.c b/drivers/net/wireless/ath/ath9k/eeprom_def.c index e591ad6016e5..7e1ed78d0e64 100644 --- a/drivers/net/wireless/ath/ath9k/eeprom_def.c +++ b/drivers/net/wireless/ath/ath9k/eeprom_def.c | |||
@@ -50,7 +50,6 @@ static void ath9k_get_txgain_index(struct ath_hw *ah, | |||
50 | i++; | 50 | i++; |
51 | 51 | ||
52 | *pcdacIdx = i; | 52 | *pcdacIdx = i; |
53 | return; | ||
54 | } | 53 | } |
55 | 54 | ||
56 | static void ath9k_olc_get_pdadcs(struct ath_hw *ah, | 55 | static void ath9k_olc_get_pdadcs(struct ath_hw *ah, |
@@ -751,8 +750,6 @@ static void ath9k_hw_get_def_gain_boundaries_pdadcs(struct ath_hw *ah, | |||
751 | pPDADCValues[k] = pPDADCValues[k - 1]; | 750 | pPDADCValues[k] = pPDADCValues[k - 1]; |
752 | k++; | 751 | k++; |
753 | } | 752 | } |
754 | |||
755 | return; | ||
756 | } | 753 | } |
757 | 754 | ||
758 | static int16_t ath9k_change_gain_boundary_setting(struct ath_hw *ah, | 755 | static int16_t ath9k_change_gain_boundary_setting(struct ath_hw *ah, |
diff --git a/drivers/net/wireless/ath/ath9k/htc_drv_txrx.c b/drivers/net/wireless/ath/ath9k/htc_drv_txrx.c index 28abc7d5e909..2571b443ac82 100644 --- a/drivers/net/wireless/ath/ath9k/htc_drv_txrx.c +++ b/drivers/net/wireless/ath/ath9k/htc_drv_txrx.c | |||
@@ -663,7 +663,6 @@ void ath9k_htc_rxep(void *drv_priv, struct sk_buff *skb, | |||
663 | return; | 663 | return; |
664 | err: | 664 | err: |
665 | dev_kfree_skb_any(skb); | 665 | dev_kfree_skb_any(skb); |
666 | return; | ||
667 | } | 666 | } |
668 | 667 | ||
669 | /* FIXME: Locking for cleanup/init */ | 668 | /* FIXME: Locking for cleanup/init */ |
diff --git a/drivers/net/wireless/ath/regd.c b/drivers/net/wireless/ath/regd.c index 24d59883d944..3f4244f56ce5 100644 --- a/drivers/net/wireless/ath/regd.c +++ b/drivers/net/wireless/ath/regd.c | |||
@@ -333,7 +333,6 @@ static void ath_reg_apply_world_flags(struct wiphy *wiphy, | |||
333 | ath_reg_apply_active_scan_flags(wiphy, initiator); | 333 | ath_reg_apply_active_scan_flags(wiphy, initiator); |
334 | break; | 334 | break; |
335 | } | 335 | } |
336 | return; | ||
337 | } | 336 | } |
338 | 337 | ||
339 | int ath_reg_notifier_apply(struct wiphy *wiphy, | 338 | int ath_reg_notifier_apply(struct wiphy *wiphy, |