Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1490102
| From | Sergio Paracuellos <sergio.paracuellos@gmail.com> |
|---|---|
| Newsgroups | linux.kernel |
| Subject | [PATCH 18/20] staging: wlan-ng: avoid new typedef: p80211item_unk1024_t |
| Date | 2016-09-23 15:50 +0200 |
| Message-ID | <skz1v-4hK-19@gated-at.bofh.it> (permalink) |
| References | <skz1v-4hK-7@gated-at.bofh.it> |
| Organization | linux.* mail to news gateway |
This patch fixes the following checkpatch.pl warning in p80211types.h:
WARNING: do not add new typedefs
It applies for typedef p80211item_unk1024_t
Signed-off-by: Sergio Paracuellos <sergio.paracuellos@gmail.com>
---
drivers/staging/wlan-ng/p80211metastruct.h | 2 +-
drivers/staging/wlan-ng/p80211types.h | 4 ++--
2 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/drivers/staging/wlan-ng/p80211metastruct.h b/drivers/staging/wlan-ng/p80211metastruct.h
index 23fd385..0b18c19 100644
--- a/drivers/staging/wlan-ng/p80211metastruct.h
+++ b/drivers/staging/wlan-ng/p80211metastruct.h
@@ -227,7 +227,7 @@ struct p80211msg_p2req_readpda {
u32 msgcode;
u32 msglen;
u8 devname[WLAN_DEVNAMELEN_MAX];
- p80211item_unk1024_t pda;
+ struct p80211item_unk1024 pda;
struct p80211item_uint32 resultcode;
} __packed;
diff --git a/drivers/staging/wlan-ng/p80211types.h b/drivers/staging/wlan-ng/p80211types.h
index 8aefd0a..921b376 100644
--- a/drivers/staging/wlan-ng/p80211types.h
+++ b/drivers/staging/wlan-ng/p80211types.h
@@ -318,12 +318,12 @@ struct p80211item_unk392 {
} __packed;
/* message data item for UNK 1025, namely p2 pdas */
-typedef struct p80211item_unk1024 {
+struct p80211item_unk1024 {
u32 did;
u16 status;
u16 len;
u8 data[1024];
-} __packed p80211item_unk1024_t;
+} __packed;
/* message data item for UNK 4096, namely p2 download chunks */
typedef struct p80211item_unk4096 {
--
1.9.1
Back to linux.kernel | Previous | Next | Find similar | Unroll thread
[PATCH 18/20] staging: wlan-ng: avoid new typedef: p80211item_unk1024_t Sergio Paracuellos <sergio.paracuellos@gmail.com> - 2016-09-23 15:50 +0200
csiph-web