From: Tobenna P. Igwe Date: Wed, 10 Sep 2014 19:45:16 +0000 (+0100) Subject: staging:rtl8188eu: Fix sparse warning cast to restricted __le16 X-Git-Tag: v3.18-rc1~130^2~450 X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=1299b721d35532a5786ef665aa86e7d01446396d;p=karo-tx-linux.git staging:rtl8188eu: Fix sparse warning cast to restricted __le16 This patch fixes the following sparse warnings: CHECK drivers/staging/rtl8188eu/hal/fw.c drivers/staging/rtl8188eu/hal/fw.c:219:13: warning: cast to restricted __le16 drivers/staging/rtl8188eu/hal/fw.c:219:13: warning: cast to restricted __le16 drivers/staging/rtl8188eu/hal/fw.c:219:13: warning: cast to restricted __le16 drivers/staging/rtl8188eu/hal/fw.c:219:13: warning: cast to restricted __le16 by changing the signature from 'u16' to '__le16'. Signed-off-by: Tobenna P. Igwe Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/staging/rtl8188eu/include/fw.h b/drivers/staging/rtl8188eu/include/fw.h index d5faaff3db59..7884d8f65763 100644 --- a/drivers/staging/rtl8188eu/include/fw.h +++ b/drivers/staging/rtl8188eu/include/fw.h @@ -36,7 +36,7 @@ #define FW_8192C_POLLING_DELAY 5 struct rtl92c_firmware_header { - u16 signature; + __le16 signature; u8 category; u8 function; u16 version;