staging: rtl8723au: fix sparse warning
change cast to __le16 to fix the following warning: drivers/staging/rtl8723au/hal/rtl8723a_hal_init.c:1488:20: warning: cast to restricted __le16 Signed-off-by: Juston Li <juston.h.li@gmail.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
77198552a4
commit
711c9b3ce4
|
@ -1485,7 +1485,7 @@ void Hal_EfuseParseIDCode(struct rtw_adapter *padapter, u8 *hwinfo)
|
|||
u16 EEPROMId;
|
||||
|
||||
/* Checl 0x8129 again for making sure autoload status!! */
|
||||
EEPROMId = le16_to_cpu(*((u16 *) hwinfo));
|
||||
EEPROMId = le16_to_cpu(*((__le16 *) hwinfo));
|
||||
if (EEPROMId != RTL_EEPROM_ID) {
|
||||
DBG_8723A("EEPROM ID(%#x) is invalid!!\n", EEPROMId);
|
||||
pEEPROM->bautoload_fail_flag = true;
|
||||
|
|
Loading…
Reference in New Issue