Commit 61959885 authored by Hariprasad Kelam's avatar Hariprasad Kelam Committed by Greg Kroah-Hartman

staging: rtl8723bs: hal: odm_HWConfig: Unneeded variable: "result". Return "HAL_STATUS_SUCCESS"

Remove function ODM_ConfigMACWithHeaderFile as trace is not necessary
and as it is getting called only once and call direct function
"ODM_ReadAndConfig_MP_8723B_MAC_REG"

Issue identified by coccicheck
Signed-off-by: default avatarHariprasad Kelam <hariprasad.kelam@gmail.com>
----
changes v2: fixed typo in commit message
changes v3: Remove function ODM_ConfigMACWithHeaderFile and replace
            with ODM_ReadAndConfig_MP_8723B_MAC_REG
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent f3a9e413
...@@ -496,32 +496,3 @@ HAL_STATUS ODM_ConfigBBWithHeaderFile( ...@@ -496,32 +496,3 @@ HAL_STATUS ODM_ConfigBBWithHeaderFile(
return HAL_STATUS_SUCCESS; return HAL_STATUS_SUCCESS;
} }
HAL_STATUS ODM_ConfigMACWithHeaderFile(PDM_ODM_T pDM_Odm)
{
u8 result = HAL_STATUS_SUCCESS;
ODM_RT_TRACE(
pDM_Odm,
ODM_COMP_INIT,
ODM_DBG_LOUD,
(
"===>ODM_ConfigMACWithHeaderFile (%s)\n",
(pDM_Odm->bIsMPChip) ? "MPChip" : "TestChip"
)
);
ODM_RT_TRACE(
pDM_Odm,
ODM_COMP_INIT,
ODM_DBG_LOUD,
(
"pDM_Odm->SupportPlatform: 0x%X, pDM_Odm->SupportInterface: 0x%X, pDM_Odm->BoardType: 0x%X\n",
pDM_Odm->SupportPlatform,
pDM_Odm->SupportInterface,
pDM_Odm->BoardType
)
);
READ_AND_CONFIG(8723B, _MAC_REG);
return result;
}
...@@ -140,8 +140,6 @@ HAL_STATUS ODM_ConfigBBWithHeaderFile( ...@@ -140,8 +140,6 @@ HAL_STATUS ODM_ConfigBBWithHeaderFile(
PDM_ODM_T pDM_Odm, ODM_BB_Config_Type ConfigType PDM_ODM_T pDM_Odm, ODM_BB_Config_Type ConfigType
); );
HAL_STATUS ODM_ConfigMACWithHeaderFile(PDM_ODM_T pDM_Odm);
HAL_STATUS ODM_ConfigFWWithHeaderFile( HAL_STATUS ODM_ConfigFWWithHeaderFile(
PDM_ODM_T pDM_Odm, PDM_ODM_T pDM_Odm,
ODM_FW_Config_Type ConfigType, ODM_FW_Config_Type ConfigType,
......
...@@ -375,7 +375,7 @@ s32 PHY_MACConfig8723B(struct adapter *Adapter) ...@@ -375,7 +375,7 @@ s32 PHY_MACConfig8723B(struct adapter *Adapter)
/* */ /* */
rtStatus = phy_ConfigMACWithParaFile(Adapter, pszMACRegFile); rtStatus = phy_ConfigMACWithParaFile(Adapter, pszMACRegFile);
if (rtStatus == _FAIL) { if (rtStatus == _FAIL) {
ODM_ConfigMACWithHeaderFile(&pHalData->odmpriv); ODM_ReadAndConfig_MP_8723B_MAC_REG(&pHalData->odmpriv);
rtStatus = _SUCCESS; rtStatus = _SUCCESS;
} }
......
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