Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

staging: rtl8192e: Remove unused union qos_tclas

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>

authored by

Philipp Hortmann and committed by
Greg Kroah-Hartman
0f920ffb 3590786a

-52
-50
drivers/staging/rtl8192e/rtl819x_Qos.h
··· 30 30 DIR_BI_DIR = 3, 31 31 }; 32 32 33 - union qos_tclas { 34 - struct _TYPE_GENERAL { 35 - u8 Priority; 36 - u8 ClassifierType; 37 - u8 Mask; 38 - } TYPE_GENERAL; 39 - 40 - struct _TYPE0_ETH { 41 - u8 Priority; 42 - u8 ClassifierType; 43 - u8 Mask; 44 - u8 SrcAddr[ETH_ALEN]; 45 - u8 DstAddr[ETH_ALEN]; 46 - u16 Type; 47 - } TYPE0_ETH; 48 - 49 - struct _TYPE1_IPV4 { 50 - u8 Priority; 51 - u8 ClassifierType; 52 - u8 Mask; 53 - u8 Version; 54 - u8 SrcIP[4]; 55 - u8 DstIP[4]; 56 - u16 SrcPort; 57 - u16 DstPort; 58 - u8 DSCP; 59 - u8 Protocol; 60 - u8 Reserved; 61 - } TYPE1_IPV4; 62 - 63 - struct _TYPE1_IPV6 { 64 - u8 Priority; 65 - u8 ClassifierType; 66 - u8 Mask; 67 - u8 Version; 68 - u8 SrcIP[16]; 69 - u8 DstIP[16]; 70 - u16 SrcPort; 71 - u16 DstPort; 72 - u8 FlowLabel[3]; 73 - } TYPE1_IPV6; 74 - 75 - struct _TYPE2_8021Q { 76 - u8 Priority; 77 - u8 ClassifierType; 78 - u8 Mask; 79 - u16 TagType; 80 - } TYPE2_8021Q; 81 - }; 82 - 83 33 union aci_aifsn { 84 34 u8 charData; 85 35
-1
drivers/staging/rtl8192e/rtl819x_TS.h
··· 21 21 struct list_head List; 22 22 u8 addr[ETH_ALEN]; 23 23 struct qos_tsinfo TSpec; 24 - union qos_tclas TClass[TCLAS_NUM]; 25 24 u8 TClasProc; 26 25 u8 TClasNum; 27 26 };
-1
drivers/staging/rtl8192e/rtl819x_TSProc.c
··· 95 95 { 96 96 eth_zero_addr(pTsCommonInfo->addr); 97 97 memset(&pTsCommonInfo->TSpec, 0, sizeof(struct qos_tsinfo)); 98 - memset(&pTsCommonInfo->TClass, 0, sizeof(union qos_tclas) * TCLAS_NUM); 99 98 pTsCommonInfo->TClasProc = 0; 100 99 pTsCommonInfo->TClasNum = 0; 101 100 }