diff options
author | Larry Finger <Larry.Finger@lwfinger.net> | 2011-05-22 21:54:37 -0400 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2011-06-01 15:12:29 -0400 |
commit | 6c0d4988c7dc23e5e8b22e99ab140e47c716848e (patch) | |
tree | 742b8c7cb1fa14b363727c42c7c67f567699442e /drivers/net/wireless/rtlwifi/rtl8192ce/trx.c | |
parent | c0fda68d00a72895c4ad0871c6f57074b0e4292c (diff) |
rtl8192ce: Fix warnings from gcc 4.6.0
gcc 4.6.0 warnings for rtl8192ce:
CC [M] drivers/net/wireless/rtlwifi/rtl8192ce/hw.o
drivers/net/wireless/rtlwifi/rtl8192ce/hw.c: In function ‘_rtl92ce_hw_configure’:
drivers/net/wireless/rtlwifi/rtl8192ce/hw.c:766:6: warning: variable ‘reg_ratr’ set but not used [-Wunused-but-set-variable]
drivers/net/wireless/rtlwifi/rtl8192ce/hw.c: In function ‘rtl92ce_gpio_radio_on_off_checking’:
drivers/net/wireless/rtlwifi/rtl8192ce/hw.c:1972:41: warning: variable ‘cur_rfstate’ set but not used [-Wunused-but-set-variable]
CC [M] drivers/net/wireless/rtlwifi/rtl8192ce/phy.o
drivers/net/wireless/rtlwifi/rtl8192ce/phy.c: In function ‘rtl92c_phy_config_rf_with_headerfile’:
drivers/net/wireless/rtlwifi/rtl8192ce/phy.c:284:7: warning: variable ‘rtstatus’ set but not used [-Wunused-but-set-variable]
CC [M] drivers/net/wireless/rtlwifi/rtl8192ce/trx.o
drivers/net/wireless/rtlwifi/rtl8192ce/trx.c: In function ‘_rtl92ce_translate_rx_signal_stuff’:
drivers/net/wireless/rtlwifi/rtl8192ce/trx.c:595:6: warning: variable ‘psaddr’ set but not used [-Wunused-but-set-variable]
Signed-off-by: Larry Finger <Larry.Finger@lwfinger.net>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net/wireless/rtlwifi/rtl8192ce/trx.c')
-rw-r--r-- | drivers/net/wireless/rtlwifi/rtl8192ce/trx.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/drivers/net/wireless/rtlwifi/rtl8192ce/trx.c b/drivers/net/wireless/rtlwifi/rtl8192ce/trx.c index 54b2bd53d36a..ac95dc44374d 100644 --- a/drivers/net/wireless/rtlwifi/rtl8192ce/trx.c +++ b/drivers/net/wireless/rtlwifi/rtl8192ce/trx.c | |||
@@ -592,7 +592,6 @@ static void _rtl92ce_translate_rx_signal_stuff(struct ieee80211_hw *hw, | |||
592 | struct ieee80211_hdr *hdr; | 592 | struct ieee80211_hdr *hdr; |
593 | u8 *tmp_buf; | 593 | u8 *tmp_buf; |
594 | u8 *praddr; | 594 | u8 *praddr; |
595 | u8 *psaddr; | ||
596 | __le16 fc; | 595 | __le16 fc; |
597 | u16 type, c_fc; | 596 | u16 type, c_fc; |
598 | bool packet_matchbssid, packet_toself, packet_beacon; | 597 | bool packet_matchbssid, packet_toself, packet_beacon; |
@@ -604,7 +603,6 @@ static void _rtl92ce_translate_rx_signal_stuff(struct ieee80211_hw *hw, | |||
604 | c_fc = le16_to_cpu(fc); | 603 | c_fc = le16_to_cpu(fc); |
605 | type = WLAN_FC_GET_TYPE(fc); | 604 | type = WLAN_FC_GET_TYPE(fc); |
606 | praddr = hdr->addr1; | 605 | praddr = hdr->addr1; |
607 | psaddr = hdr->addr2; | ||
608 | 606 | ||
609 | packet_matchbssid = | 607 | packet_matchbssid = |
610 | ((IEEE80211_FTYPE_CTL != type) && | 608 | ((IEEE80211_FTYPE_CTL != type) && |