Commit f1c3b488 authored by John Whitmore's avatar John Whitmore Committed by Greg Kroah-Hartman

staging:rtl8192u: Remove typedef and rename QOS_TCLAS - Style

Remove the typedef from the union QOS_TCLAS, which causes a checkpatch
issue with defining new types. In addition, as a type, the name should
be in lowercase so has been changed.

These are coding style changes and should have no impact on runtime
code execution.
Signed-off-by: default avatarJohn Whitmore <johnfwhitmore@gmail.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 0f79619d
...@@ -14,7 +14,7 @@ enum tr_select { ...@@ -14,7 +14,7 @@ enum tr_select {
RX_DIR = 1, RX_DIR = 1,
}; };
typedef union _QOS_TCLAS { union qos_tclas {
struct _TYPE_GENERAL { struct _TYPE_GENERAL {
u8 Priority; u8 Priority;
...@@ -63,7 +63,7 @@ typedef union _QOS_TCLAS { ...@@ -63,7 +63,7 @@ typedef union _QOS_TCLAS {
u8 Mask; u8 Mask;
u16 TagType; u16 TagType;
} TYPE2_8021Q; } TYPE2_8021Q;
} QOS_TCLAS, *PQOS_TCLAS; };
struct ts_common_info { struct ts_common_info {
struct list_head list; struct list_head list;
...@@ -71,7 +71,7 @@ struct ts_common_info { ...@@ -71,7 +71,7 @@ struct ts_common_info {
struct timer_list inact_timer; struct timer_list inact_timer;
u8 addr[6]; u8 addr[6];
struct tspec_body t_spec; struct tspec_body t_spec;
QOS_TCLAS t_class[TCLAS_NUM]; union qos_tclas t_class[TCLAS_NUM];
u8 t_clas_proc; u8 t_clas_proc;
u8 t_clas_num; u8 t_clas_num;
}; };
......
...@@ -105,7 +105,7 @@ static void ResetTsCommonInfo(struct ts_common_info *pTsCommonInfo) ...@@ -105,7 +105,7 @@ static void ResetTsCommonInfo(struct ts_common_info *pTsCommonInfo)
{ {
eth_zero_addr(pTsCommonInfo->addr); eth_zero_addr(pTsCommonInfo->addr);
memset(&pTsCommonInfo->t_spec, 0, sizeof(struct tspec_body)); memset(&pTsCommonInfo->t_spec, 0, sizeof(struct tspec_body));
memset(&pTsCommonInfo->t_class, 0, sizeof(QOS_TCLAS)*TCLAS_NUM); memset(&pTsCommonInfo->t_class, 0, sizeof(union qos_tclas)*TCLAS_NUM);
pTsCommonInfo->t_clas_proc = 0; pTsCommonInfo->t_clas_proc = 0;
pTsCommonInfo->t_clas_num = 0; pTsCommonInfo->t_clas_num = 0;
} }
...@@ -265,7 +265,7 @@ static struct ts_common_info *SearchAdmitTRStream(struct ieee80211_device *ieee, ...@@ -265,7 +265,7 @@ static struct ts_common_info *SearchAdmitTRStream(struct ieee80211_device *ieee,
} }
static void MakeTSEntry(struct ts_common_info *pTsCommonInfo, u8 *Addr, static void MakeTSEntry(struct ts_common_info *pTsCommonInfo, u8 *Addr,
struct tspec_body *pTSPEC, PQOS_TCLAS pTCLAS, u8 TCLAS_Num, struct tspec_body *pTSPEC, union qos_tclas *pTCLAS, u8 TCLAS_Num,
u8 TCLAS_Proc) u8 TCLAS_Proc)
{ {
u8 count; u8 count;
...@@ -279,7 +279,7 @@ static void MakeTSEntry(struct ts_common_info *pTsCommonInfo, u8 *Addr, ...@@ -279,7 +279,7 @@ static void MakeTSEntry(struct ts_common_info *pTsCommonInfo, u8 *Addr,
memcpy((u8 *)(&(pTsCommonInfo->t_spec)), (u8 *)pTSPEC, sizeof(struct tspec_body)); memcpy((u8 *)(&(pTsCommonInfo->t_spec)), (u8 *)pTSPEC, sizeof(struct tspec_body));
for(count = 0; count < TCLAS_Num; count++) for(count = 0; count < TCLAS_Num; count++)
memcpy((u8 *)(&(pTsCommonInfo->t_class[count])), (u8 *)pTCLAS, sizeof(QOS_TCLAS)); memcpy((u8 *)(&(pTsCommonInfo->t_class[count])), (u8 *)pTCLAS, sizeof(union qos_tclas));
pTsCommonInfo->t_clas_proc = TCLAS_Proc; pTsCommonInfo->t_clas_proc = TCLAS_Proc;
pTsCommonInfo->t_clas_num = TCLAS_Num; pTsCommonInfo->t_clas_num = TCLAS_Num;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment