mirror of
https://github.com/lwfinger/rtl8188eu.git
synced 2025-06-23 00:24:20 +00:00
rtl8188eu: Fix some sparse warnings
The driver did not work on PowerPC, which is big endian. This patch fixes all the sparse warnings concerning improper use of __le16 and __le32 variables. Signed-off-by: Larry Finger <Larry.Finger@lwfinger.net>
This commit is contained in:
parent
77e8b5de91
commit
7c7f632ac7
25 changed files with 502 additions and 684 deletions
|
@ -2987,14 +2987,11 @@ Hal_EfuseParseIDCode88E(
|
|||
|
||||
|
||||
// Checl 0x8129 again for making sure autoload status!!
|
||||
EEPROMId = le16_to_cpu(*((u16*)hwinfo));
|
||||
if (EEPROMId != RTL_EEPROM_ID)
|
||||
{
|
||||
EEPROMId = le16_to_cpu(*((__le16*)hwinfo));
|
||||
if (EEPROMId != RTL_EEPROM_ID) {
|
||||
DBG_8192C("EEPROM ID(%#x) is invalid!!\n", EEPROMId);
|
||||
pEEPROM->bautoload_fail_flag = true;
|
||||
}
|
||||
else
|
||||
{
|
||||
} else {
|
||||
pEEPROM->bautoload_fail_flag = false;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue