staging: rtl8192e: Remove unused union qos_tclas
authorPhilipp Hortmann <philipp.g.hortmann@gmail.com>
Mon, 23 Oct 2023 06:40:36 +0000 (08:40 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 25 Oct 2023 10:56:39 +0000 (12:56 +0200)
Remove union qos_tclas as it is just set to 0 and never used.

Signed-off-by: Philipp Hortmann <philipp.g.hortmann@gmail.com>
Link: https://lore.kernel.org/r/7e4d32fe7a1219a9131ce49308f68790e07fb83e.1698042685.git.philipp.g.hortmann@gmail.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/rtl8192e/rtl819x_Qos.h
drivers/staging/rtl8192e/rtl819x_TS.h
drivers/staging/rtl8192e/rtl819x_TSProc.c

index 9a9ef5fef6e0e16b9f478bcaf3ea91231999e5d0..f547de4c1da3ba7b3705c1c7207e64dcf2f73425 100644 (file)
@@ -30,56 +30,6 @@ enum direction_value {
        DIR_BI_DIR              = 3,
 };
 
-union qos_tclas {
-       struct _TYPE_GENERAL {
-               u8              Priority;
-               u8              ClassifierType;
-               u8              Mask;
-       } TYPE_GENERAL;
-
-       struct _TYPE0_ETH {
-               u8              Priority;
-               u8              ClassifierType;
-               u8              Mask;
-               u8              SrcAddr[ETH_ALEN];
-               u8              DstAddr[ETH_ALEN];
-               u16             Type;
-       } TYPE0_ETH;
-
-       struct _TYPE1_IPV4 {
-               u8              Priority;
-               u8              ClassifierType;
-               u8              Mask;
-               u8              Version;
-               u8              SrcIP[4];
-               u8              DstIP[4];
-               u16             SrcPort;
-               u16             DstPort;
-               u8              DSCP;
-               u8              Protocol;
-               u8              Reserved;
-       } TYPE1_IPV4;
-
-       struct _TYPE1_IPV6 {
-               u8              Priority;
-               u8              ClassifierType;
-               u8              Mask;
-               u8              Version;
-               u8              SrcIP[16];
-               u8              DstIP[16];
-               u16             SrcPort;
-               u16             DstPort;
-               u8              FlowLabel[3];
-       } TYPE1_IPV6;
-
-       struct _TYPE2_8021Q {
-               u8              Priority;
-               u8              ClassifierType;
-               u8              Mask;
-               u16             TagType;
-       } TYPE2_8021Q;
-};
-
 union aci_aifsn {
        u8      charData;
 
index b63edb815902b153afaf44c255b38cf9d24d5820..240e808fc4b2a30fa800f03f9a1aa9b913e1bf72 100644 (file)
@@ -21,7 +21,6 @@ struct ts_common_info {
        struct list_head                List;
        u8                              addr[ETH_ALEN];
        struct qos_tsinfo TSpec;
-       union qos_tclas TClass[TCLAS_NUM];
        u8                              TClasProc;
        u8                              TClasNum;
 };
index 96022c5ed60fce4e5681fb23803cd7b8e5feb12c..7151827408b99595ff887a43b409bb4703529d4d 100644 (file)
@@ -95,7 +95,6 @@ static void ResetTsCommonInfo(struct ts_common_info *pTsCommonInfo)
 {
        eth_zero_addr(pTsCommonInfo->addr);
        memset(&pTsCommonInfo->TSpec, 0, sizeof(struct qos_tsinfo));
-       memset(&pTsCommonInfo->TClass, 0, sizeof(union qos_tclas) * TCLAS_NUM);
        pTsCommonInfo->TClasProc = 0;
        pTsCommonInfo->TClasNum = 0;
 }