Skip to content

Commit

Permalink
staging:rtl8188eu: Fix sparse warning cast to restricted __le16
Browse files Browse the repository at this point in the history
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 <[email protected]>
Signed-off-by: Greg Kroah-Hartman <[email protected]>
  • Loading branch information
ptigwe authored and gregkh committed Sep 11, 2014
1 parent 1fe473b commit 1299b72
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/staging/rtl8188eu/include/fw.h
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@
#define FW_8192C_POLLING_DELAY 5

struct rtl92c_firmware_header {
u16 signature;
__le16 signature;
u8 category;
u8 function;
u16 version;
Expand Down

0 comments on commit 1299b72

Please sign in to comment.