staging: rtl8192e: Convert typedef DELBA_PARAM_SET to union delba_param_set
authorLarry Finger <Larry.Finger@lwfinger.net>
Tue, 19 Jul 2011 15:17:01 +0000 (10:17 -0500)
committerLarry Finger <Larry.Finger@lwfinger.net>
Wed, 24 Aug 2011 06:55:03 +0000 (01:55 -0500)
Remove typedef from union.
Rename union.
Rename uses.

Signed-off-by: Larry Finger <Larry.Finger@lwfinger.net>
drivers/staging/rtl8192e/rtl819x_BA.h
drivers/staging/rtl8192e/rtl819x_BAProc.c

index 1e2cc2e344af59f6f1b78748c9880bd12672f860..d2020b39018687edab4e8647d1c86d9ec7265023 100644 (file)
@@ -56,7 +56,7 @@ union ba_param_set {
        } field;
 };
 
-typedef union _DELBA_PARAM_SET {
+union delba_param_set {
        u8 charData[2];
        u16 shortData;
        struct {
@@ -64,7 +64,7 @@ typedef union _DELBA_PARAM_SET {
                u16 Initiator:1;
                u16 TID:4;
        } field;
-} DELBA_PARAM_SET, *PDELBA_PARAM_SET;
+};
 
 struct ba_record {
        struct timer_list               Timer;
index 6a5d68664e69c1e0b116dc80658a68c33394a5ac..f82d577c37be69da18002c97821e8477cbd00167 100644 (file)
@@ -144,7 +144,7 @@ static struct sk_buff* rtllib_DELBA(
        u16                      ReasonCode
        )
 {
-       DELBA_PARAM_SET DelbaParamSet;
+       union delba_param_set DelbaParamSet;
        struct sk_buff *skb = NULL;
         struct rtllib_hdr_3addr* Delba = NULL;
        u8* tag = NULL;
@@ -430,7 +430,7 @@ OnADDBARsp_Reject:
 int rtllib_rx_DELBA(struct rtllib_device* ieee,struct sk_buff *skb)
 {
         struct rtllib_hdr_3addr* delba = NULL;
-       PDELBA_PARAM_SET        pDelBaParamSet = NULL;
+       union delba_param_set *pDelBaParamSet = NULL;
        u16*                    pReasonCode = NULL;
        u8*                     dst = NULL;
 
@@ -452,7 +452,7 @@ int rtllib_rx_DELBA(struct rtllib_device* ieee,struct sk_buff *skb)
        delba = ( struct rtllib_hdr_3addr*)skb->data;
        dst = (u8*)(&delba->addr2[0]);
        delba += sizeof( struct rtllib_hdr_3addr);
-       pDelBaParamSet = (PDELBA_PARAM_SET)(delba+2);
+       pDelBaParamSet = (union delba_param_set *)(delba+2);
        pReasonCode = (u16*)(delba+4);
 
        if (pDelBaParamSet->field.Initiator == 1)