rtlwifi: rtl8192cu: remove duplicated routine in _rtl92c_phy_rf6052_config_parafile
authorTaehee Yoo <ap420073@gmail.com>
Sat, 6 Jun 2015 10:57:14 +0000 (19:57 +0900)
committerKalle Valo <kvalo@codeaurora.org>
Mon, 15 Jun 2015 09:31:39 +0000 (12:31 +0300)
in the _rtl92c_phy_rf6052_config_parafile(), cases
RF90_PATH_A and RF90_PATH_B call the same routine.
so i remove one of these routine. also the return
routine is duplicated. so i remove it.

Signed-off-by: Taehee Yoo <ap420073@gmail.com>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
drivers/net/wireless/rtlwifi/rtl8192cu/rf.c

index 844f1234d17aa6c760bc6ad3c8614efd883ecb22..5624ade92cc047b7891d9de3e081e2e4c51596df 100644 (file)
@@ -442,9 +442,6 @@ static bool _rtl92c_phy_rf6052_config_parafile(struct ieee80211_hw *hw)
                udelay(1);
                switch (rfpath) {
                case RF90_PATH_A:
-                       rtstatus = rtl92cu_phy_config_rf_with_headerfile(hw,
-                                       (enum radio_path) rfpath);
-                       break;
                case RF90_PATH_B:
                        rtstatus = rtl92cu_phy_config_rf_with_headerfile(hw,
                                        (enum radio_path) rfpath);
@@ -473,7 +470,6 @@ static bool _rtl92c_phy_rf6052_config_parafile(struct ieee80211_hw *hw)
                }
        }
        RT_TRACE(rtlpriv, COMP_INIT, DBG_TRACE, "<---\n");
-       return rtstatus;
 phy_rf_cfg_fail:
        return rtstatus;
 }