staging: r8188eu: remove odm ext trsw info
authorMartin Kaiser <martin@kaiser.cx>
Sun, 10 Oct 2021 17:52:02 +0000 (19:52 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 13 Oct 2021 12:26:51 +0000 (14:26 +0200)
The ext trsw info is not used. Remove it.

Signed-off-by: Martin Kaiser <martin@kaiser.cx>
Link: https://lore.kernel.org/r/20211010175204.24029-9-martin@kaiser.cx
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/r8188eu/hal/odm.c
drivers/staging/r8188eu/include/odm.h

index c094cffb9e6aefdec06afd3f8645d0b0fcafd3f5..cf088164220766b2297e29d047468974144e05ea 100644 (file)
@@ -243,9 +243,6 @@ void ODM_CmnInfoInit(struct odm_dm_struct *pDM_Odm, enum odm_common_info_def Cmn
        case    ODM_CMNINFO_EXT_PA:
                pDM_Odm->ExtPA = (u8)Value;
                break;
-       case    ODM_CMNINFO_EXT_TRSW:
-               pDM_Odm->ExtTRSW = (u8)Value;
-               break;
        /* To remove the compiler warning, must add an empty default statement to handle the other values. */
        default:
                /* do nothing */
index 462424f0a49b9f28333777caa3e53efa8e7233b3..346dc04a50e6a05a339febd3012f7530654a6715 100644 (file)
@@ -270,7 +270,6 @@ enum odm_common_info_def {
        ODM_CMNINFO_BOARD_TYPE,         /* ODM_BOARD_TYPE_E */
        ODM_CMNINFO_EXT_LNA,            /* true */
        ODM_CMNINFO_EXT_PA,
-       ODM_CMNINFO_EXT_TRSW,
        /* HOOK BEFORE REG INIT-----------  */
 
        /*  Dynamic value: */
@@ -652,8 +651,6 @@ struct odm_dm_struct {
        u8      ExtLNA;
        /*  with external PA  NO/Yes = 0/1 */
        u8      ExtPA;
-       /*  with external TRSW  NO/Yes = 0/1 */
-       u8      ExtTRSW;
 
        u32     BK_SupportAbility;
        u8      AntDivType;