staging: rtl8723au: fix sparse warning
authorJuston Li <juston.h.li@gmail.com>
Sat, 23 May 2015 05:03:04 +0000 (22:03 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 31 May 2015 00:22:44 +0000 (09:22 +0900)
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>
drivers/staging/rtl8723au/hal/rtl8723a_hal_init.c

index efe1730..cb5076a 100644 (file)
@@ -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;