mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-10 14:19:09 -04:00
staging:rtl8723au: Fix sparse warning cast to restricted __le16
This patch fixes the following sparse warning: drivers/staging/rtl8723au/hal/rtl8723a_bt-coexist.c:343:36: warning: cast to restricted __le16 by using the le16_to_cpus function. Signed-off-by: Tobenna P. Igwe <ptigwe@gmail.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
0431f080c5
commit
8488d6eca9
1 changed files with 1 additions and 1 deletions
|
|
@ -340,7 +340,7 @@ static u8 bthci_GetAssocInfo(struct rtw_adapter *padapter, u8 EntryNum)
|
|||
tempBuf, TotalLen-BaseMemoryShift);
|
||||
|
||||
pAmpAsoc = (struct amp_assoc_structure *)tempBuf;
|
||||
pAmpAsoc->Length = le16_to_cpu(pAmpAsoc->Length);
|
||||
le16_to_cpus(&pAmpAsoc->Length);
|
||||
BaseMemoryShift += 3 + pAmpAsoc->Length;
|
||||
|
||||
RTPRINT(FIOCTL, IOCTL_BT_HCICMD, ("TypeID = 0x%x, ", pAmpAsoc->TypeID));
|
||||
|
|
|
|||
Loading…
Reference in a new issue