mirror of
https://github.com/edk2-porting/linux-next.git
synced 2024-12-26 22:24:09 +08:00
staging: rtl8723au: Hal_InitPGData() avoid unnecessary typecasts
Signed-off-by: Jes Sorensen <Jes.Sorensen@redhat.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
cffca68d7b
commit
315f9a2fe2
@ -1487,22 +1487,20 @@ void Hal_InitPGData(struct rtw_adapter *padapter, u8 *PROMContent)
|
||||
{
|
||||
struct eeprom_priv *pEEPROM = GET_EEPROM_EFUSE_PRIV(padapter);
|
||||
|
||||
if (false == pEEPROM->bautoload_fail_flag) { /* autoload OK. */
|
||||
if (!pEEPROM->bautoload_fail_flag) { /* autoload OK. */
|
||||
if (!pEEPROM->EepromOrEfuse) {
|
||||
/* Read EFUSE real map to shadow. */
|
||||
EFUSE_ShadowMapUpdate23a(padapter, EFUSE_WIFI);
|
||||
memcpy((void *)PROMContent,
|
||||
(void *)pEEPROM->efuse_eeprom_data,
|
||||
memcpy(PROMContent, pEEPROM->efuse_eeprom_data,
|
||||
HWSET_MAX_SIZE);
|
||||
}
|
||||
} else { /* autoload fail */
|
||||
} else {
|
||||
RT_TRACE(_module_hci_hal_init_c_, _drv_notice_,
|
||||
("AutoLoad Fail reported from CR9346!!\n"));
|
||||
/* pHalData->AutoloadFailFlag = true; */
|
||||
/* update to default value 0xFF */
|
||||
if (false == pEEPROM->EepromOrEfuse)
|
||||
if (!pEEPROM->EepromOrEfuse)
|
||||
EFUSE_ShadowMapUpdate23a(padapter, EFUSE_WIFI);
|
||||
memcpy((void *)PROMContent, (void *)pEEPROM->efuse_eeprom_data,
|
||||
memcpy(PROMContent, pEEPROM->efuse_eeprom_data,
|
||||
HWSET_MAX_SIZE);
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user