Skip to contentSkip to conversation

staging: r8188eu: remove some unused enums

PATCH In review Michael Straube 2 participants 2 messages Sep 8, 2022 Staging

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 staging: r8188eu: remove some unused enums

Remove some unused enums to clean up the driver code.

---
 drivers/staging/r8188eu/include/rtl8188e_xmit.h |  6 ------
 drivers/staging/r8188eu/include/rtw_mlme.h      | 11 -----------
 drivers/staging/r8188eu/include/wlan_bssdef.h   |  4 ----
 3 files changed, 21 deletions(-)
drivers/staging/r8188eu/include/rtl8188e_xmit.h +0 -6
index c69fed23ded9..6db7fabebea9 100644
@@ -83,12 +83,6 @@
 /* OFFSET 20 */
 #define	RTY_LMT_EN		BIT(17)
 
-enum TXDESC_SC {
-	SC_DONT_CARE = 0x00,
-	SC_UPPER = 0x01,
-	SC_LOWER = 0x02,
-	SC_DUPLICATE = 0x03
-};
 /* OFFSET 20 */
 #define SGI			BIT(6)
 #define USB_TXAGG_NUM_SHT	24
drivers/staging/r8188eu/include/rtw_mlme.h +0 -11
index 5dc2fe74b7b7..a959e2100c3f 100644
@@ -63,17 +63,6 @@ enum rt_scan_type {
 	SCAN_MIX,
 };
 
-enum SCAN_RESULT_TYPE {
-	SCAN_RESULT_P2P_ONLY = 0,	/* Will return all the P2P devices. */
-	SCAN_RESULT_ALL = 1,		/* Will return all the scanned device,
-					 * include AP. */
-	SCAN_RESULT_WFD_TYPE = 2	/* Will just return the correct WFD
-					 * device. */
-					/* If this device is Miracast sink
-					 * device, it will just return all the
-					 * Miracast source devices. */
-};
-
 /*
 there are several "locks" in mlme_priv,
 since mlme_priv is a shared resource between many threads,
drivers/staging/r8188eu/include/wlan_bssdef.h +0 -4
index 9d1c9e763287..81bda91a4136 100644
@@ -133,10 +133,6 @@ struct ndis_802_11_assoc_info {
 	u32  OffsetResponseIEs;
 };
 
-enum ndis_802_11_reload_def {
-	Ndis802_11ReloadWEPKeys
-};
-
 /*  Key mapping keys require a BSSID */
 struct ndis_802_11_key {
 	u32           Length;             /*  Length of this structure */
Signature · 1 line
2.37.2
Tested-by on v1 1/1
#1 lore raw
Quoted 53 lines · Michael Straube

Remove some unused enums to clean up the driver code.

---
  drivers/staging/r8188eu/include/rtl8188e_xmit.h |  6 ------
  drivers/staging/r8188eu/include/rtw_mlme.h      | 11 -----------
  drivers/staging/r8188eu/include/wlan_bssdef.h   |  4 ----
  3 files changed, 21 deletions(-)
drivers/staging/r8188eu/include/rtl8188e_xmit.h +0 -6
index c69fed23ded9..6db7fabebea9 100644
@@ -83,12 +83,6 @@
  /* OFFSET 20 */
  #define	RTY_LMT_EN		BIT(17)
 
-enum TXDESC_SC {
-	SC_DONT_CARE = 0x00,
-	SC_UPPER = 0x01,
-	SC_LOWER = 0x02,
-	SC_DUPLICATE = 0x03
-};
  /* OFFSET 20 */
  #define SGI			BIT(6)
  #define USB_TXAGG_NUM_SHT	24
drivers/staging/r8188eu/include/rtw_mlme.h +0 -11
index 5dc2fe74b7b7..a959e2100c3f 100644
@@ -63,17 +63,6 @@ enum rt_scan_type {
  	SCAN_MIX,
  };
 
-enum SCAN_RESULT_TYPE {
-	SCAN_RESULT_P2P_ONLY = 0,	/* Will return all the P2P devices. */
-	SCAN_RESULT_ALL = 1,		/* Will return all the scanned device,
-					 * include AP. */
-	SCAN_RESULT_WFD_TYPE = 2	/* Will just return the correct WFD
-					 * device. */
-					/* If this device is Miracast sink
-					 * device, it will just return all the
-					 * Miracast source devices. */
-};
-
  /*
  there are several "locks" in mlme_priv,
  since mlme_priv is a shared resource between many threads,
drivers/staging/r8188eu/include/wlan_bssdef.h +0 -0
index 9d1c9e763287..81bda91a4136 100644

drivers/staging/r8188eu/include/wlan_bssdef.h struct ndis_802_11_assoc_info { · line 138

Quoted 10 lines
drivers/staging/r8188eu/include/wlan_bssdef.h +0 -4
@@ -133,10 +133,6 @@ struct ndis_802_11_assoc_info {
  	u32  OffsetResponseIEs;
  };
 
-enum ndis_802_11_reload_def {
-	Ndis802_11ReloadWEPKeys
-};
-
  /*  Key mapping keys require a BSSID */
  struct ndis_802_11_key {
  	u32           Length;             /*  Length of this structure */