Skip to content

Commit

Permalink
staging: wlan-ng: avoid new typedef: p80211item_unk4096_t
Browse files Browse the repository at this point in the history
This patch fixes the following checkpatch.pl warning in p80211types.h:
WARNING: do not add new typedefs

It applies for typedef p80211item_unk4096_t

Signed-off-by: Sergio Paracuellos <sergio.paracuellos@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
  • Loading branch information
Sergio Paracuellos authored and Greg Kroah-Hartman committed Sep 25, 2016
1 parent 1ad26f7 commit f8b8f64
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions drivers/staging/wlan-ng/p80211metastruct.h
Original file line number Diff line number Diff line change
Expand Up @@ -246,7 +246,7 @@ struct p80211msg_p2req_ramdl_write {
u8 devname[WLAN_DEVNAMELEN_MAX];
struct p80211item_uint32 addr;
struct p80211item_uint32 len;
p80211item_unk4096_t data;
struct p80211item_unk4096 data;
struct p80211item_uint32 resultcode;
} __packed;

Expand All @@ -264,7 +264,7 @@ struct p80211msg_p2req_flashdl_write {
u8 devname[WLAN_DEVNAMELEN_MAX];
struct p80211item_uint32 addr;
struct p80211item_uint32 len;
p80211item_unk4096_t data;
struct p80211item_unk4096 data;
struct p80211item_uint32 resultcode;
} __packed;

Expand Down
4 changes: 2 additions & 2 deletions drivers/staging/wlan-ng/p80211types.h
Original file line number Diff line number Diff line change
Expand Up @@ -326,12 +326,12 @@ struct p80211item_unk1024 {
} __packed;

/* message data item for UNK 4096, namely p2 download chunks */
typedef struct p80211item_unk4096 {
struct p80211item_unk4096 {
u32 did;
u16 status;
u16 len;
u8 data[4096];
} __packed p80211item_unk4096_t;
} __packed;

struct catlistitem;

Expand Down

0 comments on commit f8b8f64

Please sign in to comment.