Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 1299b721 authored by Tobenna P. Igwe's avatar Tobenna P. Igwe Committed by Greg Kroah-Hartman
Browse files

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: default avatarTobenna P. Igwe <ptigwe@gmail.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 1fe473b3
Loading
Loading
Loading
Loading
+1 −1
Original line number Original line Diff line number Diff line
@@ -36,7 +36,7 @@
#define FW_8192C_POLLING_DELAY		5
#define FW_8192C_POLLING_DELAY		5


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