diff options
author | Larry Finger <Larry.Finger@lwfinger.net> | 2013-10-23 23:31:34 -0400 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2013-10-29 12:10:15 -0400 |
commit | be987763249482e5dcc00ec8089945371d8c8cc0 (patch) | |
tree | 609b1b2057d31542758ebb0566ddec98830d2b0f | |
parent | 7a1046e5c0fdce80ba075c2edd8a97b7485693ce (diff) |
staging: r8188eu: Fix sparse warnings in rtw_ieee80211.c
Sparse reports the following:
CHECK drivers/staging/rtl8188eu/core/rtw_ieee80211.c
drivers/staging/rtl8188eu/core/rtw_ieee80211.c:1593:14: warning: cast to restricted __le16
Signed-off-by: Larry Finger <Larry.Finger@lwfinger.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
-rw-r--r-- | drivers/staging/rtl8188eu/include/ieee80211.h | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/drivers/staging/rtl8188eu/include/ieee80211.h b/drivers/staging/rtl8188eu/include/ieee80211.h index cd37ea4df4cb..c4d38d14abf1 100644 --- a/drivers/staging/rtl8188eu/include/ieee80211.h +++ b/drivers/staging/rtl8188eu/include/ieee80211.h | |||
@@ -306,8 +306,8 @@ struct ieee_ibss_seq { | |||
306 | }; | 306 | }; |
307 | 307 | ||
308 | struct rtw_ieee80211_hdr { | 308 | struct rtw_ieee80211_hdr { |
309 | u16 frame_ctl; | 309 | __le16 frame_ctl; |
310 | u16 duration_id; | 310 | __le16 duration_id; |
311 | u8 addr1[ETH_ALEN]; | 311 | u8 addr1[ETH_ALEN]; |
312 | u8 addr2[ETH_ALEN]; | 312 | u8 addr2[ETH_ALEN]; |
313 | u8 addr3[ETH_ALEN]; | 313 | u8 addr3[ETH_ALEN]; |
@@ -316,8 +316,8 @@ struct rtw_ieee80211_hdr { | |||
316 | } __packed; | 316 | } __packed; |
317 | 317 | ||
318 | struct rtw_ieee80211_hdr_3addr { | 318 | struct rtw_ieee80211_hdr_3addr { |
319 | u16 frame_ctl; | 319 | __le16 frame_ctl; |
320 | u16 duration_id; | 320 | __le16 duration_id; |
321 | u8 addr1[ETH_ALEN]; | 321 | u8 addr1[ETH_ALEN]; |
322 | u8 addr2[ETH_ALEN]; | 322 | u8 addr2[ETH_ALEN]; |
323 | u8 addr3[ETH_ALEN]; | 323 | u8 addr3[ETH_ALEN]; |
@@ -325,8 +325,8 @@ struct rtw_ieee80211_hdr_3addr { | |||
325 | } __packed; | 325 | } __packed; |
326 | 326 | ||
327 | struct rtw_ieee80211_hdr_qos { | 327 | struct rtw_ieee80211_hdr_qos { |
328 | u16 frame_ctl; | 328 | __le16 frame_ctl; |
329 | u16 duration_id; | 329 | __le16 duration_id; |
330 | u8 addr1[ETH_ALEN]; | 330 | u8 addr1[ETH_ALEN]; |
331 | u8 addr2[ETH_ALEN]; | 331 | u8 addr2[ETH_ALEN]; |
332 | u8 addr3[ETH_ALEN]; | 332 | u8 addr3[ETH_ALEN]; |
@@ -336,8 +336,8 @@ struct rtw_ieee80211_hdr_qos { | |||
336 | } __packed; | 336 | } __packed; |
337 | 337 | ||
338 | struct rtw_ieee80211_hdr_3addr_qos { | 338 | struct rtw_ieee80211_hdr_3addr_qos { |
339 | u16 frame_ctl; | 339 | __le16 frame_ctl; |
340 | u16 duration_id; | 340 | __le16 duration_id; |
341 | u8 addr1[ETH_ALEN]; | 341 | u8 addr1[ETH_ALEN]; |
342 | u8 addr2[ETH_ALEN]; | 342 | u8 addr2[ETH_ALEN]; |
343 | u8 addr3[ETH_ALEN]; | 343 | u8 addr3[ETH_ALEN]; |