mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-04 18:19:28 +09: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:
committed by
Greg Kroah-Hartman
parent
0431f080c5
commit
8488d6eca9
@@ -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));
|
||||
|
||||
Reference in New Issue
Block a user