From: Piotr Witoslawski Date: Thu, 2 Apr 2015 13:37:30 +0000 (+0200) Subject: drivers: staging: rtl8723au: fix "warning: cast to restricted __le16" X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=d049c7f8191440d881bf2224af8ed0de74d8d9a3;p=GitHub%2Fmoto-9609%2Fandroid_kernel_motorola_exynos9610.git 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: Piotr Witoslawski Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/staging/rtl8723au/hal/rtl8723au_xmit.c b/drivers/staging/rtl8723au/hal/rtl8723au_xmit.c index 41ac843b9260..6bf87fe86644 100644 --- a/drivers/staging/rtl8723au/hal/rtl8723au_xmit.c +++ b/drivers/staging/rtl8723au/hal/rtl8723au_xmit.c @@ -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;