From 72dbeaf589cf35df3cf28c731cd153ae6f211ec7 Mon Sep 17 00:00:00 2001 From: Himangi Saraogi Date: Thu, 13 Mar 2014 00:07:16 +0530 Subject: [PATCH] staging:rtl8187se:ieee80211: Fix sparse warning of cast to restricted __le16 This patch fixes the following sparse warnings: drivers/staging/rtl8187se/ieee80211/ieee80211_crypt_tkip.c:496:17: warning: cast to restricted __le16 drivers/staging/rtl8187se/ieee80211/ieee80211_crypt_tkip.c:540:12: warning: cast to restricted __le16 drivers/staging/rtl8187se/ieee80211/ieee80211_crypt_tkip.c:586:12: warning: cast to restricted __le16 Signed-off-by: Himangi Saraogi Reviewed-by: Bob Copeland Signed-off-by: Peter P Waskiewicz Jr --- drivers/staging/rtl8187se/ieee80211/ieee80211.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/staging/rtl8187se/ieee80211/ieee80211.h b/drivers/staging/rtl8187se/ieee80211/ieee80211.h index e4c1c379de68..d1763b7b8f27 100644 --- a/drivers/staging/rtl8187se/ieee80211/ieee80211.h +++ b/drivers/staging/rtl8187se/ieee80211/ieee80211.h @@ -482,7 +482,7 @@ struct ieee80211_header_data { }; struct ieee80211_hdr_4addr { - u16 frame_ctl; + __le16 frame_ctl; u16 duration_id; u8 addr1[ETH_ALEN]; u8 addr2[ETH_ALEN]; -- 2.30.2