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

Commit d049c7f8 authored by Piotr Witoslawski's avatar Piotr Witoslawski Committed by Greg Kroah-Hartman
Browse files

drivers: staging: rtl8723au: fix "warning: cast to restricted __le16"



This patch fixes the sparse warning: "cast to restricted __le16" reported
for rtl8723au/hal/rtl8723au_xmit.c

Signed-off-by: default avatarPiotr Witoslawski <pwitos@gmail.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent a4820acf
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -42,7 +42,7 @@ static int urb_zero_packet_chk(struct rtw_adapter *padapter, int sz)

static void rtl8192cu_cal_txdesc_chksum(struct tx_desc	*ptxdesc)
{
		u16	*usPtr = (u16 *)ptxdesc;
		__le16	*usPtr = (__le16 *)ptxdesc;
		u32 count = 16;		/*  (32 bytes / 2 bytes per XOR) => 16 times */
		u32 index;
		u16 checksum = 0;