From: Monam Agarwal Date: Wed, 5 Mar 2014 22:03:59 +0000 (+0530) Subject: Staging: rtl8188eu: Fix sparse warning cast to restricted __le16 X-Git-Tag: v3.15-rc1~139^2~578 X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=c6b2dcdc8b4499fc70e033ec47adb1fdcf319b12;p=karo-tx-linux.git Staging: rtl8188eu: Fix sparse warning cast to restricted __le16 This patch fixes the following sparse warnings: drivers/staging/rtl8188eu/core/rtw_wlan_util.c:1627:25: warning: cast to restricted __le16 by changing the annotations in the struct declaration. Signed-off-by: Monam Agarwal Acked-by: Paul E. McKenney Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/staging/rtl8188eu/include/wifi.h b/drivers/staging/rtl8188eu/include/wifi.h index 2e7307f259b6..a88ebf41bba1 100644 --- a/drivers/staging/rtl8188eu/include/wifi.h +++ b/drivers/staging/rtl8188eu/include/wifi.h @@ -694,7 +694,7 @@ struct WMM_para_element { struct ADDBA_request { unsigned char dialog_token; - unsigned short BA_para_set; + __le16 BA_para_set; unsigned short BA_timeout_value; unsigned short BA_starting_seqctrl; } __packed;