staging: rtl8188eu: remove HW_DEF_ODM_DBG_FLAG enum value
authorPhillip Potter <phil@philpotter.co.uk>
Sat, 12 Jun 2021 18:19:42 +0000 (19:19 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 14 Jun 2021 14:40:03 +0000 (16:40 +0200)
Remove HW_DEF_ODM_DBG_FLAG definition from the hal_def_variable enum
in include/hal_intf.h, and remove its usage from the switch statement
in rtw_hal_get_def_var inside hal/usb_halinit.c - this is dead code
and no longer used, now that ODM_RT_TRACE and include/odm_debug.h
have been removed.

Signed-off-by: Phillip Potter <phil@philpotter.co.uk>
Link: https://lore.kernel.org/r/20210612181942.33817-1-phil@philpotter.co.uk
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/rtl8188eu/hal/usb_halinit.c
drivers/staging/rtl8188eu/include/hal_intf.h

index 3e7f184..e3f3868 100644 (file)
@@ -1850,8 +1850,6 @@ u8 rtw_hal_get_def_var(struct adapter *Adapter, enum hal_def_variable eVariable,
                        }
                }
                break;
-       case HW_DEF_ODM_DBG_FLAG:
-               break;
        case HAL_DEF_DBG_DUMP_RXPKT:
                *((u8 *)pValue) = haldata->bDumpRxPkt;
                break;
index 39df305..2e3e933 100644 (file)
@@ -117,7 +117,6 @@ enum hal_def_variable {
        HW_DEF_RA_INFO_DUMP,
        HAL_DEF_DBG_DUMP_TXPKT,
        HW_DEF_FA_CNT_DUMP,
-       HW_DEF_ODM_DBG_FLAG,
 };
 
 enum hal_odm_variable {