]> git.proxmox.com Git - mirror_ubuntu-zesty-kernel.git/commitdiff
staging:rtl8188eu: Fix sparse warning cast to restricted __le16
authorTobenna P. Igwe <ptigwe@gmail.com>
Wed, 10 Sep 2014 19:45:16 +0000 (20:45 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 11 Sep 2014 21:56:51 +0000 (14:56 -0700)
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 <ptigwe@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/rtl8188eu/include/fw.h

index d5faaff3db5972a78f9f73f2ae7bf59c97258935..7884d8f6576389023ecd94b8b8e8d2d28d064a41 100644 (file)
@@ -36,7 +36,7 @@
 #define FW_8192C_POLLING_DELAY         5
 
 struct rtl92c_firmware_header {
-       u16 signature;
+       __le16 signature;
        u8 category;
        u8 function;
        u16 version;