diff options
author | Piotr Witoslawski <pwitos@gmail.com> | 2015-04-02 15:37:30 +0200 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2015-04-03 15:12:54 +0200 |
commit | d049c7f8191440d881bf2224af8ed0de74d8d9a3 (patch) | |
tree | 3f111ad89784c5a2961dce1d61e5b8ad44efab45 /drivers | |
parent | a4820acfaf179982a86783ee0c0d5d39a9c5ab20 (diff) | |
download | op-kernel-dev-d049c7f8191440d881bf2224af8ed0de74d8d9a3.zip op-kernel-dev-d049c7f8191440d881bf2224af8ed0de74d8d9a3.tar.gz |
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 <pwitos@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/staging/rtl8723au/hal/rtl8723au_xmit.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/staging/rtl8723au/hal/rtl8723au_xmit.c b/drivers/staging/rtl8723au/hal/rtl8723au_xmit.c index 41ac843..6bf87fe 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; |