diff options
author | Sujith <Sujith.Manoharan@atheros.com> | 2009-03-30 05:58:28 -0400 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2009-04-22 16:54:30 -0400 |
commit | eef7a57430c83b0419ba943bb1650ed5c349d454 (patch) | |
tree | fe94931593ceed4605055220feb364a056c63cf5 /drivers | |
parent | d8baa9392666d1c50ef42e9f6fbbb0cf536327b9 (diff) |
ath9k: Change return value of ath9k_hw_fill_cap_info
This routine always return true, checking for false
in the return value is invalid. Fix this.
Signed-off-by: Sujith <Sujith.Manoharan@atheros.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/net/wireless/ath9k/hw.c | 10 | ||||
-rw-r--r-- | drivers/net/wireless/ath9k/hw.h | 2 |
2 files changed, 3 insertions, 9 deletions
diff --git a/drivers/net/wireless/ath9k/hw.c b/drivers/net/wireless/ath9k/hw.c index 169d8efa69dc..4ad1508e4752 100644 --- a/drivers/net/wireless/ath9k/hw.c +++ b/drivers/net/wireless/ath9k/hw.c | |||
@@ -837,11 +837,7 @@ static struct ath_hw *ath9k_hw_do_attach(u16 devid, struct ath_softc *sc, | |||
837 | if (AR_SREV_9280_20(ah)) | 837 | if (AR_SREV_9280_20(ah)) |
838 | ath9k_hw_init_txgain_ini(ah); | 838 | ath9k_hw_init_txgain_ini(ah); |
839 | 839 | ||
840 | if (!ath9k_hw_fill_cap_info(ah)) { | 840 | ath9k_hw_fill_cap_info(ah); |
841 | DPRINTF(sc, ATH_DBG_RESET, "failed ath9k_hw_fill_cap_info\n"); | ||
842 | ecode = -EINVAL; | ||
843 | goto bad; | ||
844 | } | ||
845 | 841 | ||
846 | if ((ah->hw_version.devid == AR9280_DEVID_PCI) && | 842 | if ((ah->hw_version.devid == AR9280_DEVID_PCI) && |
847 | test_bit(ATH9K_MODE_11A, ah->caps.wireless_modes)) { | 843 | test_bit(ATH9K_MODE_11A, ah->caps.wireless_modes)) { |
@@ -3228,7 +3224,7 @@ void ath9k_hw_set_sta_beacon_timers(struct ath_hw *ah, | |||
3228 | /* HW Capabilities */ | 3224 | /* HW Capabilities */ |
3229 | /*******************/ | 3225 | /*******************/ |
3230 | 3226 | ||
3231 | bool ath9k_hw_fill_cap_info(struct ath_hw *ah) | 3227 | void ath9k_hw_fill_cap_info(struct ath_hw *ah) |
3232 | { | 3228 | { |
3233 | struct ath9k_hw_capabilities *pCap = &ah->caps; | 3229 | struct ath9k_hw_capabilities *pCap = &ah->caps; |
3234 | u16 capField = 0, eeval; | 3230 | u16 capField = 0, eeval; |
@@ -3403,8 +3399,6 @@ bool ath9k_hw_fill_cap_info(struct ath_hw *ah) | |||
3403 | ah->btactive_gpio = 6; | 3399 | ah->btactive_gpio = 6; |
3404 | ah->wlanactive_gpio = 5; | 3400 | ah->wlanactive_gpio = 5; |
3405 | } | 3401 | } |
3406 | |||
3407 | return true; | ||
3408 | } | 3402 | } |
3409 | 3403 | ||
3410 | bool ath9k_hw_getcapability(struct ath_hw *ah, enum ath9k_capability_type type, | 3404 | bool ath9k_hw_getcapability(struct ath_hw *ah, enum ath9k_capability_type type, |
diff --git a/drivers/net/wireless/ath9k/hw.h b/drivers/net/wireless/ath9k/hw.h index 5ba6a4b60356..c50faae22c59 100644 --- a/drivers/net/wireless/ath9k/hw.h +++ b/drivers/net/wireless/ath9k/hw.h | |||
@@ -557,7 +557,7 @@ struct ath_hw *ath9k_hw_attach(u16 devid, struct ath_softc *sc, int *error); | |||
557 | void ath9k_hw_rfdetach(struct ath_hw *ah); | 557 | void ath9k_hw_rfdetach(struct ath_hw *ah); |
558 | int ath9k_hw_reset(struct ath_hw *ah, struct ath9k_channel *chan, | 558 | int ath9k_hw_reset(struct ath_hw *ah, struct ath9k_channel *chan, |
559 | bool bChannelChange); | 559 | bool bChannelChange); |
560 | bool ath9k_hw_fill_cap_info(struct ath_hw *ah); | 560 | void ath9k_hw_fill_cap_info(struct ath_hw *ah); |
561 | bool ath9k_hw_getcapability(struct ath_hw *ah, enum ath9k_capability_type type, | 561 | bool ath9k_hw_getcapability(struct ath_hw *ah, enum ath9k_capability_type type, |
562 | u32 capability, u32 *result); | 562 | u32 capability, u32 *result); |
563 | bool ath9k_hw_setcapability(struct ath_hw *ah, enum ath9k_capability_type type, | 563 | bool ath9k_hw_setcapability(struct ath_hw *ah, enum ath9k_capability_type type, |