diff options
author | Larry Finger <Larry.Finger@lwfinger.net> | 2011-04-25 14:23:20 -0400 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2011-04-26 16:14:55 -0400 |
commit | d3bb1429a2c1470d1f84646c00e34dc6784ee06e (patch) | |
tree | 3d3aa086cdcdddd296b829ec7745ee36e9091a27 /drivers/net/wireless/rtlwifi/base.c | |
parent | 76c34f910a5c99a402de5068444563d4c151e794 (diff) |
rtlwifi: rtl8192ce: rtl8192cu: Fix most sparse warnings
Fix most sparse warnings in rtlwifi, rtl8192ce and rtl8192cu drivers.
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/base.c')
-rw-r--r-- | drivers/net/wireless/rtlwifi/base.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/net/wireless/rtlwifi/base.c b/drivers/net/wireless/rtlwifi/base.c index 2df99463a68..d3666573d6b 100644 --- a/drivers/net/wireless/rtlwifi/base.c +++ b/drivers/net/wireless/rtlwifi/base.c | |||
@@ -795,7 +795,7 @@ u8 rtl_is_special_data(struct ieee80211_hw *hw, struct sk_buff *skb, u8 is_tx) | |||
795 | ip = (struct iphdr *)((u8 *) skb->data + mac_hdr_len + | 795 | ip = (struct iphdr *)((u8 *) skb->data + mac_hdr_len + |
796 | SNAP_SIZE + PROTOC_TYPE_SIZE); | 796 | SNAP_SIZE + PROTOC_TYPE_SIZE); |
797 | ether_type = *(u16 *) ((u8 *) skb->data + mac_hdr_len + SNAP_SIZE); | 797 | ether_type = *(u16 *) ((u8 *) skb->data + mac_hdr_len + SNAP_SIZE); |
798 | ether_type = ntohs(ether_type); | 798 | /* ether_type = ntohs(ether_type); */ |
799 | 799 | ||
800 | if (ETH_P_IP == ether_type) { | 800 | if (ETH_P_IP == ether_type) { |
801 | if (IPPROTO_UDP == ip->protocol) { | 801 | if (IPPROTO_UDP == ip->protocol) { |
@@ -1105,7 +1105,7 @@ u8 *rtl_find_ie(u8 *data, unsigned int len, u8 ie) | |||
1105 | 1105 | ||
1106 | /* when we use 2 rx ants we send IEEE80211_SMPS_OFF */ | 1106 | /* when we use 2 rx ants we send IEEE80211_SMPS_OFF */ |
1107 | /* when we use 1 rx ant we send IEEE80211_SMPS_STATIC */ | 1107 | /* when we use 1 rx ant we send IEEE80211_SMPS_STATIC */ |
1108 | struct sk_buff *rtl_make_smps_action(struct ieee80211_hw *hw, | 1108 | static struct sk_buff *rtl_make_smps_action(struct ieee80211_hw *hw, |
1109 | enum ieee80211_smps_mode smps, u8 *da, u8 *bssid) | 1109 | enum ieee80211_smps_mode smps, u8 *da, u8 *bssid) |
1110 | { | 1110 | { |
1111 | struct rtl_efuse *rtlefuse = rtl_efuse(rtl_priv(hw)); | 1111 | struct rtl_efuse *rtlefuse = rtl_efuse(rtl_priv(hw)); |
@@ -1230,7 +1230,7 @@ static bool rtl_chk_vendor_ouisub(struct ieee80211_hw *hw, | |||
1230 | return matched; | 1230 | return matched; |
1231 | } | 1231 | } |
1232 | 1232 | ||
1233 | bool rtl_find_221_ie(struct ieee80211_hw *hw, u8 *data, | 1233 | static bool rtl_find_221_ie(struct ieee80211_hw *hw, u8 *data, |
1234 | unsigned int len) | 1234 | unsigned int len) |
1235 | { | 1235 | { |
1236 | struct ieee80211_mgmt *mgmt = (void *)data; | 1236 | struct ieee80211_mgmt *mgmt = (void *)data; |