]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
staging:rtl8723au: Fix return statement reported by coccinelle
authorPrasanna Karthik <mkarthi3@visteon.com>
Wed, 17 Jun 2015 12:50:14 +0000 (12:50 +0000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 18 Jun 2015 04:25:24 +0000 (21:25 -0700)
Modified return statement and removed local declaration no longer
needed. No Compiler warnings.

Signed-off-by: Prasanna Karthik <mkarthi3@visteon.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/rtl8723au/hal/rtl8723a_rf6052.c

index 4909835cc5409bc5cce9966d14bd6c758b9b2a5d..11d635d2eac8ef348c9942db83a69b44f26c4aba 100644 (file)
@@ -500,7 +500,6 @@ phy_RF6052_Config_ParaFile_Fail:
 int PHY_RF6052_Config8723A(struct rtw_adapter *Adapter)
 {
        struct hal_data_8723a *pHalData = GET_HAL_DATA(Adapter);
-       int rtStatus = _SUCCESS;
 
        /*  Initialize general global value */
        /*  TODO: Extend RF_PATH_C and RF_PATH_D in the future */
@@ -510,8 +509,7 @@ int PHY_RF6052_Config8723A(struct rtw_adapter *Adapter)
                pHalData->NumTotalRFPath = 2;
 
        /*  Config BB and RF */
-       rtStatus = phy_RF6052_Config_ParaFile(Adapter);
-       return rtStatus;
+       return phy_RF6052_Config_ParaFile(Adapter);
 }
 
 /* End of HalRf6052.c */