staging: r8188eu: remove HW_VAR_CAM_EMPTY_ENTRY
authorMichael Straube <straube.linux@gmail.com>
Sun, 30 Jan 2022 19:03:21 +0000 (20:03 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 31 Jan 2022 13:03:30 +0000 (14:03 +0100)
The HW_VAR_CAM_EMPTY_ENTRY case in SetHwReg8188EU() is not used.
Remove it.

Signed-off-by: Michael Straube <straube.linux@gmail.com>
Link: https://lore.kernel.org/r/20220130190321.7172-13-straube.linux@gmail.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/r8188eu/hal/usb_halinit.c
drivers/staging/r8188eu/include/hal_intf.h

index f6a1eb2bba47f18be49d3fb54262f4dc1ae51544..0fdade585d25ca4b4fa84dce0d03f0ed255a12c7 100644 (file)
@@ -1272,29 +1272,6 @@ void SetHwReg8188EU(struct adapter *Adapter, u8 variable, u8 *val)
        case HW_VAR_DM_FUNC_CLR:
                podmpriv->SupportAbility &= *((u32 *)val);
                break;
-       case HW_VAR_CAM_EMPTY_ENTRY:
-               {
-                       u8 ucIndex = *((u8 *)val);
-                       u8 i;
-                       u32 ulCommand = 0;
-                       u32 ulContent = 0;
-                       u32 ulEncAlgo = CAM_AES;
-
-                       for (i = 0; i < CAM_CONTENT_COUNT; i++) {
-                               /*  filled id in CAM config 2 byte */
-                               if (i == 0)
-                                       ulContent |= (ucIndex & 0x03) | ((u16)(ulEncAlgo) << 2);
-                               else
-                                       ulContent = 0;
-                               /*  polling bit, and No Write enable, and address */
-                               ulCommand = CAM_CONTENT_COUNT * ucIndex + i;
-                               ulCommand = ulCommand | CAM_POLLINIG | CAM_WRITE;
-                               /*  write content 0 is equall to mark invalid */
-                               rtw_write32(Adapter, WCAMI, ulContent);  /* delay_ms(40); */
-                               rtw_write32(Adapter, RWCAM, ulCommand);  /* delay_ms(40); */
-                       }
-               }
-               break;
        case HW_VAR_AC_PARAM_BE:
                haldata->AcParam_BE = ((u32 *)(val))[0];
                rtw_write32(Adapter, REG_EDCA_BE_PARAM, ((u32 *)(val))[0]);
index cd25d5a29a2898dc0a1a7494082dc2a1b54d1afa..e8731e2668f6a68c11f284d84a630a95d69e9768 100644 (file)
@@ -25,7 +25,6 @@ enum hw_variables {
        HW_VAR_DM_FUNC_OP,
        HW_VAR_DM_FUNC_SET,
        HW_VAR_DM_FUNC_CLR,
-       HW_VAR_CAM_EMPTY_ENTRY,
        HW_VAR_CAM_READ,
        HW_VAR_AC_PARAM_BE,
        HW_VAR_ACM_CTRL,