]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
staging:r8188eu: remove unused HW_VAR_RF_TYPE parameter of HT_caps_handler
authorIvan Safonov <insafonov@gmail.com>
Tue, 14 Feb 2017 22:25:31 +0000 (01:25 +0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 6 Mar 2017 08:17:00 +0000 (09:17 +0100)
rtw_hal_get_hwreg() does not used with HW_VAR_RF_TYPE parameter.
Remove HW_VAR_RF_TYPE switch case in rtw_hal_get_hwreg and definition.

Signed-off-by: Ivan Safonov <insafonov@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/rtl8188eu/hal/usb_halinit.c
drivers/staging/rtl8188eu/include/hal_intf.h

index 3675edb6194213800fc73599bf6323dd538fd5bb..c87ab7d234f270203c876510b31c1fdf76c63446 100644 (file)
@@ -1745,9 +1745,6 @@ void rtw_hal_get_hwreg(struct adapter *Adapter, u8 variable, u8 *val)
                /* BCN_VALID, BIT16 of REG_TDECTRL = BIT0 of REG_TDECTRL+2 */
                val[0] = (BIT(0) & usb_read8(Adapter, REG_TDECTRL+2)) ? true : false;
                break;
-       case HW_VAR_RF_TYPE:
-               val[0] = RF_1T1R;
-               break;
        case HW_VAR_FWLPS_RF_ON:
                {
                        /* When we halt NIC, we should check if FW LPS is leave. */
index e1114a95d442b4bc5a8d3afe2b1be6c5da350898..dfdbd02548866d16244a203c828d01cb5b78710d 100644 (file)
@@ -57,7 +57,6 @@ enum hw_variables {
        HW_VAR_ACK_PREAMBLE,
        HW_VAR_SEC_CFG,
        HW_VAR_BCN_VALID,
-       HW_VAR_RF_TYPE,
        HW_VAR_DM_FUNC_OP,
        HW_VAR_DM_FUNC_SET,
        HW_VAR_DM_FUNC_CLR,