From: Himangi Saraogi Date: Tue, 4 Mar 2014 23:47:40 +0000 (+0530) Subject: staging:rtl8187se:ieee80211: Fix incorrect type in assignment X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=f5099d5e52eb3e6061666d8a20fbf87f169d51b0;p=openwrt%2Fstaging%2Fblogic.git staging:rtl8187se:ieee80211: Fix incorrect type in assignment This patch fixes sparse warnings like : (1) drivers/staging/rtl8187se/ieee80211/ieee80211_softmac.c:331:31: warning: incorrect type in assignment (different base types) drivers/staging/rtl8187se/ieee80211/ieee80211_softmac.c:331:31: expected unsigned short [unsigned] [usertype] frame_ctl drivers/staging/rtl8187se/ieee80211/ieee80211_softmac.c:331:31: got restricted __le16 [usertype] (2) drivers/staging/rtl8187se/ieee80211/ieee80211_softmac.c:1091:32: warning: incorrect type in assignment (different base types) drivers/staging/rtl8187se/ieee80211/ieee80211_softmac.c:1091:32: expected restricted __le16 [usertype] duration_id drivers/staging/rtl8187se/ieee80211/ieee80211_softmac.c:1091:32: got int Signed-off-by: Himangi Saraogi Acked-by: Paul E. McKenney Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/staging/rtl8187se/ieee80211/ieee80211.h b/drivers/staging/rtl8187se/ieee80211/ieee80211.h index 4978b2bba186..e4c1c379de68 100644 --- a/drivers/staging/rtl8187se/ieee80211/ieee80211.h +++ b/drivers/staging/rtl8187se/ieee80211/ieee80211.h @@ -473,7 +473,7 @@ enum { }; struct ieee80211_header_data { - u16 frame_ctl; + __le16 frame_ctl; u16 duration_id; u8 addr1[6]; u8 addr2[6];