OSDN Git Service

staging:rtl8192u: Remove unused QOS definitions - Style
authorJohn Whitmore <johnfwhitmore@gmail.com>
Mon, 23 Jul 2018 20:50:19 +0000 (21:50 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 24 Jul 2018 12:06:13 +0000 (14:06 +0200)
Remove the unused QOS related types.

Since definitions are not used simply remove from code. This change is
a coding style change and should not impact runtime execution.

Signed-off-by: John Whitmore <johnfwhitmore@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/rtl8192u/ieee80211/rtl819x_Qos.h

index fb2745d..a83abaf 100644 (file)
@@ -4,25 +4,6 @@
 
 #define        MAX_WMMELE_LENGTH       64
 
-//
-// QoS mode.
-// enum 0, 1, 2, 4: since we can use the OR(|) operation.
-//
-// QOS_MODE is redefined for enum can't be ++, | under C++ compiler, 2006.05.17, by rcnjko.
-//typedef      enum _QOS_MODE{
-//     QOS_DISABLE             = 0,
-//     QOS_WMM                 = 1,
-//     QOS_EDCA                        = 2,
-//     QOS_HCCA                        = 4,
-//}QOS_MODE,*PQOS_MODE;
-//
-#define QOS_DISABLE            0
-#define QOS_WMM                        1
-#define QOS_WMMSA              2
-#define QOS_EDCA               4
-#define QOS_HCCA               8
-#define QOS_WMM_UAPSD          16   //WMM Power Save, 2006-06-14 Isaiah
-
 #define AC_PARAM_SIZE  4
 #define WMM_PARAM_ELE_BODY_LEN 18
 
@@ -506,14 +487,11 @@ typedef struct _BSS_QOS {
        AC_PARAM                AcParameter[4];
 } BSS_QOS, *PBSS_QOS;
 
-
 //
 // Ref: sQoSCtlLng and QoSCtl definition in 8185 QoS code.
 //#define QoSCtl   ((  (Adapter->bRegQoS) && (Adapter->dot11QoS.QoSMode &(QOS_EDCA|QOS_HCCA))    )  ?sQoSCtlLng:0)
 //
 #define sQoSCtlLng                     2
-#define        QOS_CTRL_LEN(_QosMode)          ((_QosMode > QOS_DISABLE) ? sQoSCtlLng : 0)
-
 
 //Added by joseph
 //UP Mapping to AC, using in MgntQuery_SequenceNumber() and maybe for DSCP