staging: r8188eu: fix phy_RF6052_Config_ParaFile error handling
authorMartin Kaiser <martin@kaiser.cx>
Mon, 10 Jan 2022 12:46:30 +0000 (13:46 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 25 Jan 2022 15:18:42 +0000 (16:18 +0100)
Fix the error handling in phy_RF6052_Config_ParaFile.
We can simply return rtStatus.

Signed-off-by: Martin Kaiser <martin@kaiser.cx>
Link: https://lore.kernel.org/r/20220110124638.6909-2-martin@kaiser.cx
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/r8188eu/hal/rtl8188e_rf6052.c

index 6e0231099986de2a043aff49bca4ce5c13bc9bf2..7e4744989a66dda88dfdfa19a2c7c2dc67742970 100644 (file)
@@ -406,12 +406,6 @@ static int phy_RF6052_Config_ParaFile(struct adapter *Adapter)
        /*----Restore RFENV control type----*/;
        rtl8188e_PHY_SetBBReg(Adapter, pPhyReg->rfintfs, bRFSI_RFENV, u4RegValue);
 
-       if (rtStatus != _SUCCESS)
-               goto phy_RF6052_Config_ParaFile_Fail;
-
-       return rtStatus;
-
-phy_RF6052_Config_ParaFile_Fail:
        return rtStatus;
 }