Staging: rtl8188eu: Fix sparse warning cast to restricted __le16
authorMonam Agarwal <monamagarwal123@gmail.com>
Wed, 5 Mar 2014 22:03:59 +0000 (03:33 +0530)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 7 Mar 2014 22:44:04 +0000 (14:44 -0800)
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 <monamagarwal123@gmail.com>
Acked-by: Paul E. McKenney <paulmck@linux.vnet.ibm.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/rtl8188eu/include/wifi.h

index 2e7307f259b6af15791174c2f6bdaa454bdb2bbe..a88ebf41bba11c5746793f7d011137e486956a83 100644 (file)
@@ -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;