bool rtl8812ae_phy_config_rf_with_headerfile(struct ieee80211_hw *hw,
                                             enum radio_path rfpath)
 {
-       bool rtstatus = true;
        u32 *radioa_array_table_a, *radioa_array_table_b;
        u16 radioa_arraylen_a, radioa_arraylen_b;
        struct rtl_priv *rtlpriv = rtl_priv(hw);
        RT_TRACE(rtlpriv, COMP_INIT, DBG_LOUD,
                 "Radio_A:RTL8821AE_RADIOA_ARRAY %d\n", radioa_arraylen_a);
        RT_TRACE(rtlpriv, COMP_INIT, DBG_LOUD, "Radio No %x\n", rfpath);
-       rtstatus = true;
        switch (rfpath) {
        case RF90_PATH_A:
                return __rtl8821ae_phy_config_with_headerfile(hw,
 bool rtl8821ae_phy_config_rf_with_headerfile(struct ieee80211_hw *hw,
                                                enum radio_path rfpath)
 {
-       bool rtstatus = true;
        u32 *radioa_array_table;
        u16 radioa_arraylen;
        struct rtl_priv *rtlpriv = rtl_priv(hw);
        RT_TRACE(rtlpriv, COMP_INIT, DBG_LOUD,
                 "Radio_A:RTL8821AE_RADIOA_ARRAY %d\n", radioa_arraylen);
        RT_TRACE(rtlpriv, COMP_INIT, DBG_LOUD, "Radio No %x\n", rfpath);
-       rtstatus = true;
        switch (rfpath) {
        case RF90_PATH_A:
                return __rtl8821ae_phy_config_with_headerfile(hw,
        struct rtl_phy *rtlphy = &rtlpriv->phy;
        short band_temp = -1, regulation = -1, bandwidth_temp = -1,
                 rate_section = -1, channel_temp = -1;
-       u16 bd, regu, bdwidth, sec, chnl;
+       u16 regu, bdwidth, sec, chnl;
        s8 power_limit = MAX_POWER_INDEX;
 
        if (rtlefuse->eeprom_regulatory == 2)
                return MAX_POWER_INDEX;
        }
 
-       bd = band_temp;
        regu = regulation;
        bdwidth = bandwidth_temp;
        sec = rate_section;