Commit c7abd874 authored by Jes Sorensen's avatar Jes Sorensen Committed by Greg Kroah-Hartman

staging: rtl8723au: Remove some redundant check for hw_init_completed

Signed-off-by: default avatarJes Sorensen <Jes.Sorensen@redhat.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 22965e39
...@@ -211,6 +211,7 @@ rtl8723a_HalDmWatchDog( ...@@ -211,6 +211,7 @@ rtl8723a_HalDmWatchDog(
{ {
bool bFwCurrentInPSMode = false; bool bFwCurrentInPSMode = false;
bool bFwPSAwake = true; bool bFwPSAwake = true;
u8 bLinked = false;
u8 hw_init_completed = false; u8 hw_init_completed = false;
struct hal_data_8723a *pHalData = GET_HAL_DATA(Adapter); struct hal_data_8723a *pHalData = GET_HAL_DATA(Adapter);
struct dm_priv *pdmpriv = &pHalData->dmpriv; struct dm_priv *pdmpriv = &pHalData->dmpriv;
...@@ -223,7 +224,7 @@ rtl8723a_HalDmWatchDog( ...@@ -223,7 +224,7 @@ rtl8723a_HalDmWatchDog(
bFwCurrentInPSMode = Adapter->pwrctrlpriv.bFwCurrentInPSMode; bFwCurrentInPSMode = Adapter->pwrctrlpriv.bFwCurrentInPSMode;
bFwPSAwake = rtl8723a_get_fwlps_rf_on(Adapter); bFwPSAwake = rtl8723a_get_fwlps_rf_on(Adapter);
if ((hw_init_completed) && ((!bFwCurrentInPSMode) && bFwPSAwake)) { if (!bFwCurrentInPSMode && bFwPSAwake) {
/* Calculate Tx/Rx statistics. */ /* Calculate Tx/Rx statistics. */
dm_CheckStatistics(Adapter); dm_CheckStatistics(Adapter);
...@@ -238,16 +239,11 @@ rtl8723a_HalDmWatchDog( ...@@ -238,16 +239,11 @@ rtl8723a_HalDmWatchDog(
} }
/* ODM */ /* ODM */
if (hw_init_completed == true) { if (rtw_linked_check(Adapter))
u8 bLinked = false; bLinked = true;
if (rtw_linked_check(Adapter)) ODM_CmnInfoUpdate23a(&pHalData->odmpriv, ODM_CMNINFO_LINK, bLinked);
bLinked = true; ODM_DMWatchdog23a(&pHalData->odmpriv);
ODM_CmnInfoUpdate23a(&pHalData->odmpriv, ODM_CMNINFO_LINK,
bLinked);
ODM_DMWatchdog23a(&pHalData->odmpriv);
}
skip_dm: skip_dm:
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment