staging: rtl8192e: remove dead code
authorMateusz Kulikowski <mateusz.kulikowski@gmail.com>
Mon, 16 Mar 2015 23:00:54 +0000 (00:00 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 20 Mar 2015 12:13:59 +0000 (13:13 +0100)
Remove commented-out unions and enum.

Signed-off-by: Mateusz Kulikowski <mateusz.kulikowski@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/rtl8192e/rtl819x_HT.h
drivers/staging/rtl8192e/rtllib.h

index 193c872bf08169c9a25f09ac4bc72d1f610fcf8b..a1cc86ecee0a2cddb9bf9ec67d29bb84e72973d8 100644 (file)
@@ -80,40 +80,6 @@ enum chnl_op {
 #define CHHLOP_IN_PROGRESS(_pHTInfo)   \
                (((_pHTInfo)->ChnlOp > CHNLOP_NONE) ? true : false)
 
-/*
-union ht_capability {
-       u16     ShortData;
-       u8      CharData[2];
-       struct
-       {
-               u16     AdvCoding:1;
-               u16     ChlWidth:1;
-               u16     MimoPwrSave:2;
-               u16     GreenField:1;
-               u16     ShortGI20Mhz:1;
-               u16     ShortGI40Mhz:1;
-               u16     STBC:1;
-               u16     BeamForm:1;
-               u16     DelayBA:1;
-               u16     MaxAMSDUSize:1;
-               u16     DssCCk:1;
-               u16     PSMP:1;
-               u16     Rsvd:3;
-       }Field;
-};
-
-union ht_capability_macpara {
-       u8      ShortData;
-       u8      CharData[1];
-       struct
-       {
-               u8      MaxRxAMPDU:2;
-               u8      MPDUDensity:2;
-               u8      Rsvd:4;
-       }Field;
-};
-*/
-
 enum ht_action {
        ACT_RECOMMAND_WIDTH             = 0,
        ACT_MIMO_PWR_SAVE               = 1,
index 3e437ea7b85d1c6e22e06ec19a44af262d3e9f13..92edce5ff418a68961510d84760f2ca618f1e4c0 100644 (file)
@@ -1649,7 +1649,6 @@ struct rtllib_network {
        struct list_head list;
 };
 
-#if 1
 enum rtllib_state {
 
        /* the card is not linked at all */
@@ -1687,17 +1686,6 @@ enum rtllib_state {
         */
        RTLLIB_LINKED_SCANNING,
 };
-#else
-enum rtllib_state {
-       RTLLIB_UNINITIALIZED = 0,
-       RTLLIB_INITIALIZED,
-       RTLLIB_ASSOCIATING,
-       RTLLIB_ASSOCIATED,
-       RTLLIB_AUTHENTICATING,
-       RTLLIB_AUTHENTICATED,
-       RTLLIB_SHUTDOWN
-};
-#endif
 
 #define DEFAULT_MAX_SCAN_AGE (15 * HZ)
 #define DEFAULT_FTS 2346