* [PATCH] Staging: rtl8192u: Remove unnecessary struct and typedef
@ 2015-03-12 2:30 Cristina Opriceana
2015-03-12 7:20 ` [Outreachy kernel] " Julia Lawall
0 siblings, 1 reply; 2+ messages in thread
From: Cristina Opriceana @ 2015-03-12 2:30 UTC (permalink / raw)
To: outreachy-kernel
This patch removes the _bss_ht struct and the associated type definition
because it is not used and it also introduces the warning:
"WARNING: do not add new typedefs".
Signed-off-by: Cristina Opriceana <cristina.opriceana@gmail.com>
---
drivers/staging/rtl8192u/ieee80211/ieee80211.h | 18 ------------------
1 file changed, 18 deletions(-)
diff --git a/drivers/staging/rtl8192u/ieee80211/ieee80211.h b/drivers/staging/rtl8192u/ieee80211/ieee80211.h
index b6b862a..0f53c6a 100644
--- a/drivers/staging/rtl8192u/ieee80211/ieee80211.h
+++ b/drivers/staging/rtl8192u/ieee80211/ieee80211.h
@@ -1457,24 +1457,6 @@ struct ether_header {
#define ETHERTYPE_IP 0x0800 /* IP protocol */
#endif
-typedef struct _bss_ht{
-
- bool support_ht;
-
- // HT related elements
- u8 ht_cap_buf[32];
- u16 ht_cap_len;
- u8 ht_info_buf[32];
- u16 ht_info_len;
-
- HT_SPEC_VER ht_spec_ver;
- //HT_CAPABILITY_ELE bdHTCapEle;
- //HT_INFORMATION_ELE bdHTInfoEle;
-
- bool aggregation;
- bool long_slot_time;
-}bss_ht, *pbss_ht;
-
typedef enum _erp_t{
ERP_NonERPpresent = 0x01,
ERP_UseProtection = 0x02,
--
1.9.1
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [Outreachy kernel] [PATCH] Staging: rtl8192u: Remove unnecessary struct and typedef
2015-03-12 2:30 [PATCH] Staging: rtl8192u: Remove unnecessary struct and typedef Cristina Opriceana
@ 2015-03-12 7:20 ` Julia Lawall
0 siblings, 0 replies; 2+ messages in thread
From: Julia Lawall @ 2015-03-12 7:20 UTC (permalink / raw)
To: Cristina Opriceana; +Cc: outreachy-kernel
On Thu, 12 Mar 2015, Cristina Opriceana wrote:
> This patch removes the _bss_ht struct and the associated type definition
> because it is not used and it also introduces the warning:
> "WARNING: do not add new typedefs".
Maybe look around for more tpes that are not used.
julia
> Signed-off-by: Cristina Opriceana <cristina.opriceana@gmail.com>
> ---
> drivers/staging/rtl8192u/ieee80211/ieee80211.h | 18 ------------------
> 1 file changed, 18 deletions(-)
>
> diff --git a/drivers/staging/rtl8192u/ieee80211/ieee80211.h b/drivers/staging/rtl8192u/ieee80211/ieee80211.h
> index b6b862a..0f53c6a 100644
> --- a/drivers/staging/rtl8192u/ieee80211/ieee80211.h
> +++ b/drivers/staging/rtl8192u/ieee80211/ieee80211.h
> @@ -1457,24 +1457,6 @@ struct ether_header {
> #define ETHERTYPE_IP 0x0800 /* IP protocol */
> #endif
>
> -typedef struct _bss_ht{
> -
> - bool support_ht;
> -
> - // HT related elements
> - u8 ht_cap_buf[32];
> - u16 ht_cap_len;
> - u8 ht_info_buf[32];
> - u16 ht_info_len;
> -
> - HT_SPEC_VER ht_spec_ver;
> - //HT_CAPABILITY_ELE bdHTCapEle;
> - //HT_INFORMATION_ELE bdHTInfoEle;
> -
> - bool aggregation;
> - bool long_slot_time;
> -}bss_ht, *pbss_ht;
> -
> typedef enum _erp_t{
> ERP_NonERPpresent = 0x01,
> ERP_UseProtection = 0x02,
> --
> 1.9.1
>
> --
> You received this message because you are subscribed to the Google Groups "outreachy-kernel" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to outreachy-kernel+unsubscribe@googlegroups.com.
> To post to this group, send email to outreachy-kernel@googlegroups.com.
> To view this discussion on the web visit https://groups.google.com/d/msgid/outreachy-kernel/47d01e18e2aa91b110d99c06c240a1493fbbaf52.1426127289.git.cristina.opriceana%40gmail.com.
> For more options, visit https://groups.google.com/d/optout.
>
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2015-03-12 7:20 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-03-12 2:30 [PATCH] Staging: rtl8192u: Remove unnecessary struct and typedef Cristina Opriceana
2015-03-12 7:20 ` [Outreachy kernel] " Julia Lawall
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.