Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

staging: rtl8723au: core: remove redundant endianness conversion

Source and destination have the same little-endian annotation: this
patch removes incorrect byte-swap on non-LE cpus.

This addresses the following sparse warning:
drivers/staging/rtl8723au/core/rtw_mlme_ext.c:3911:56: warning: incorrect type in argument 1 (different base types)
drivers/staging/rtl8723au/core/rtw_mlme_ext.c:3911:56: expected unsigned short [unsigned] [usertype] val
drivers/staging/rtl8723au/core/rtw_mlme_ext.c:3911:56: got restricted __le16 [usertype] BA_timeout_value

Signed-off-by: David Decotigny <ddecotig@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>

authored by

David Decotigny and committed by
Greg Kroah-Hartman
02632342 af17b56d

+2 -2
+2 -2
drivers/staging/rtl8723au/core/rtw_mlme_ext.c
··· 3906 3906 put_unaligned_le16(BA_para_set, 3907 3907 &mgmt->u.action.u.addba_resp.capab); 3908 3908 3909 - put_unaligned_le16(pmlmeinfo->ADDBA_req.BA_timeout_value, 3910 - &mgmt->u.action.u.addba_resp.timeout); 3909 + mgmt->u.action.u.addba_resp.timeout 3910 + = pmlmeinfo->ADDBA_req.BA_timeout_value; 3911 3911 3912 3912 pattrib->pktlen += 8; 3913 3913 break;