diff options
author | Sergio Paracuellos <sergio.paracuellos@gmail.com> | 2016-09-25 09:34:56 -0400 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2016-09-25 13:53:06 -0400 |
commit | 758f140d473893bbfad9b9bbf6597ce93d55f415 (patch) | |
tree | b6dce5b913ede73abccf606b6b6fb52fff11b57c | |
parent | 5d005584199bb481d052db946f6eb23d64222b25 (diff) |
staging: wlan-ng: avoid new typedef: p80211pstr32_t
This patch fixes the following checkpatch.pl warning in p80211types.h:
WARNING: do not add new typedefs
It applies for typedef p80211pstr32_t
Signed-off-by: Sergio Paracuellos <sergio.paracuellos@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
-rw-r--r-- | drivers/staging/wlan-ng/p80211netdev.h | 2 | ||||
-rw-r--r-- | drivers/staging/wlan-ng/p80211types.h | 6 |
2 files changed, 4 insertions, 4 deletions
diff --git a/drivers/staging/wlan-ng/p80211netdev.h b/drivers/staging/wlan-ng/p80211netdev.h index 138acdbfa426..222f736ba7ae 100644 --- a/drivers/staging/wlan-ng/p80211netdev.h +++ b/drivers/staging/wlan-ng/p80211netdev.h | |||
@@ -191,7 +191,7 @@ struct wlandevice { | |||
191 | 191 | ||
192 | /* 802.11 State */ | 192 | /* 802.11 State */ |
193 | u8 bssid[WLAN_BSSID_LEN]; | 193 | u8 bssid[WLAN_BSSID_LEN]; |
194 | p80211pstr32_t ssid; | 194 | struct p80211pstr32 ssid; |
195 | u32 macmode; | 195 | u32 macmode; |
196 | int linkstatus; | 196 | int linkstatus; |
197 | 197 | ||
diff --git a/drivers/staging/wlan-ng/p80211types.h b/drivers/staging/wlan-ng/p80211types.h index b77f8f026f49..3d5e81be935b 100644 --- a/drivers/staging/wlan-ng/p80211types.h +++ b/drivers/staging/wlan-ng/p80211types.h | |||
@@ -243,10 +243,10 @@ struct p80211pstr14 { | |||
243 | } __packed; | 243 | } __packed; |
244 | 244 | ||
245 | /* pascal string for ssid */ | 245 | /* pascal string for ssid */ |
246 | typedef struct p80211pstr32 { | 246 | struct p80211pstr32 { |
247 | u8 len; | 247 | u8 len; |
248 | u8 data[MAXLEN_PSTR32]; | 248 | u8 data[MAXLEN_PSTR32]; |
249 | } __packed p80211pstr32_t; | 249 | } __packed; |
250 | 250 | ||
251 | /* MAC address array */ | 251 | /* MAC address array */ |
252 | typedef struct p80211macarray { | 252 | typedef struct p80211macarray { |
@@ -298,7 +298,7 @@ typedef struct p80211item_pstr32 { | |||
298 | u32 did; | 298 | u32 did; |
299 | u16 status; | 299 | u16 status; |
300 | u16 len; | 300 | u16 len; |
301 | p80211pstr32_t data; | 301 | struct p80211pstr32 data; |
302 | } __packed p80211item_pstr32_t; | 302 | } __packed p80211item_pstr32_t; |
303 | 303 | ||
304 | /* message data item for OCTETSTR, DISPLAYSTR */ | 304 | /* message data item for OCTETSTR, DISPLAYSTR */ |