diff options
author | Sergio Paracuellos <sergio.paracuellos@gmail.com> | 2016-09-25 15:35:01 +0200 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2016-09-25 19:54:01 +0200 |
commit | 34aae059939daf5f9298241d3981b9f421ff3dd1 (patch) | |
tree | ff9f58ea9fe491bfe8d94a94af8521ae22930343 | |
parent | b26b232544601facdbf41e0e72f1a4ae1d2e8f00 (diff) | |
download | linux-stable-34aae059939daf5f9298241d3981b9f421ff3dd1.tar.gz linux-stable-34aae059939daf5f9298241d3981b9f421ff3dd1.tar.bz2 linux-stable-34aae059939daf5f9298241d3981b9f421ff3dd1.zip |
staging: wlan-ng: avoid new typedef: p80211item_pstr6_t
This patch fixes the following checkpatch.pl warning in p80211types.h:
WARNING: do not add new typedefs
It applies for typedef p80211item_pstr6_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/p80211metastruct.h | 4 | ||||
-rw-r--r-- | drivers/staging/wlan-ng/p80211netdev.c | 4 | ||||
-rw-r--r-- | drivers/staging/wlan-ng/p80211types.h | 4 |
3 files changed, 6 insertions, 6 deletions
diff --git a/drivers/staging/wlan-ng/p80211metastruct.h b/drivers/staging/wlan-ng/p80211metastruct.h index c29988ec1131..97ef2ef35f08 100644 --- a/drivers/staging/wlan-ng/p80211metastruct.h +++ b/drivers/staging/wlan-ng/p80211metastruct.h @@ -68,7 +68,7 @@ struct p80211msg_dot11req_scan { u32 msglen; u8 devname[WLAN_DEVNAMELEN_MAX]; struct p80211item_uint32 bsstype; - p80211item_pstr6_t bssid; + struct p80211item_pstr6 bssid; u8 pad_0C[1]; p80211item_pstr32_t ssid; u8 pad_1D[3]; @@ -91,7 +91,7 @@ struct p80211msg_dot11req_scan_results { struct p80211item_uint32 resultcode; struct p80211item_uint32 signal; struct p80211item_uint32 noise; - p80211item_pstr6_t bssid; + struct p80211item_pstr6 bssid; u8 pad_3C[1]; p80211item_pstr32_t ssid; u8 pad_4D[3]; diff --git a/drivers/staging/wlan-ng/p80211netdev.c b/drivers/staging/wlan-ng/p80211netdev.c index 5244bd8649dc..d71bd7edf6b2 100644 --- a/drivers/staging/wlan-ng/p80211netdev.c +++ b/drivers/staging/wlan-ng/p80211netdev.c @@ -615,7 +615,7 @@ static int p80211knetdev_set_mac_address(netdevice_t *dev, void *addr) struct sockaddr *new_addr = addr; struct p80211msg_dot11req_mibset dot11req; p80211item_unk392_t *mibattr; - p80211item_pstr6_t *macaddr; + struct p80211item_pstr6 *macaddr; struct p80211item_uint32 *resultcode; int result; @@ -625,7 +625,7 @@ static int p80211knetdev_set_mac_address(netdevice_t *dev, void *addr) /* Set up some convenience pointers. */ mibattr = &dot11req.mibattribute; - macaddr = (p80211item_pstr6_t *)&mibattr->data; + macaddr = (struct p80211item_pstr6 *)&mibattr->data; resultcode = &dot11req.resultcode; /* Set up a dot11req_mibset */ diff --git a/drivers/staging/wlan-ng/p80211types.h b/drivers/staging/wlan-ng/p80211types.h index 13962ec9e83b..9a09cce018be 100644 --- a/drivers/staging/wlan-ng/p80211types.h +++ b/drivers/staging/wlan-ng/p80211types.h @@ -278,12 +278,12 @@ struct p80211item_uint32 { } __packed; /* message data item for OCTETSTR, DISPLAYSTR */ -typedef struct p80211item_pstr6 { +struct p80211item_pstr6 { u32 did; u16 status; u16 len; struct p80211pstr6 data; -} __packed p80211item_pstr6_t; +} __packed; /* message data item for OCTETSTR, DISPLAYSTR */ typedef struct p80211item_pstr14 { |