]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
staging: wlan-ng: avoid new typedef: p80211itemd_t
authorSergio Paracuellos <sergio.paracuellos@gmail.com>
Sun, 25 Sep 2016 13:34:59 +0000 (15:34 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 25 Sep 2016 17:53:06 +0000 (19:53 +0200)
This patch fixes the following checkpatch.pl warning in p80211types.h:
WARNING: do not add new typedefs

It applies for typedef p80211itemd_t

Signed-off-by: Sergio Paracuellos <sergio.paracuellos@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/wlan-ng/p80211req.c
drivers/staging/wlan-ng/p80211types.h
drivers/staging/wlan-ng/prism2fw.c
drivers/staging/wlan-ng/prism2mib.c

index 61962d72bdd668b286db19b597149927c423de74..d43e85b5d49b6cc75d267895f226c55a89666a60 100644 (file)
@@ -195,7 +195,7 @@ static void p80211req_mibset_mibget(struct wlandevice *wlandev,
                                   struct p80211msg_dot11req_mibget *mib_msg,
                                   int isget)
 {
-       p80211itemd_t *mibitem = (p80211itemd_t *)mib_msg->mibattribute.data;
+       struct p80211itemd *mibitem = (struct p80211itemd *)mib_msg->mibattribute.data;
        struct p80211pstrd *pstr = (struct p80211pstrd *)mibitem->data;
        u8 *key = mibitem->data + sizeof(struct p80211pstrd);
 
index 65400445543dd069540ee17b50966a4ef968e9c8..57a65a83e3b54b814f09526de3e87851f3c53621 100644 (file)
@@ -262,12 +262,12 @@ struct p80211item {
 } __packed;
 
 /* prototype template w/ data item */
-typedef struct p80211itemd {
+struct p80211itemd {
        u32 did;
        u16 status;
        u16 len;
        u8 data[0];
-} __packed p80211itemd_t;
+} __packed;
 
 /* message data item for int, BOUNDEDINT, ENUMINT */
 typedef struct p80211item_uint32 {
index 870bad92d9b634915a4bbbc214aed24fee3fa954..7c5d3e7136815681878a378278f35adf753b9a61 100644 (file)
@@ -243,7 +243,7 @@ static int prism2_fwapply(const struct ihex_binrec *rfptr,
 {
        signed int result = 0;
        struct p80211msg_dot11req_mibget getmsg;
-       p80211itemd_t *item;
+       struct p80211itemd *item;
        u32 *data;
 
        /* Initialize the data structures */
@@ -293,7 +293,7 @@ static int prism2_fwapply(const struct ihex_binrec *rfptr,
        getmsg.resultcode.did = DIDmsg_dot11req_mibget_resultcode;
        getmsg.resultcode.status = P80211ENUM_msgitem_status_no_value;
 
-       item = (p80211itemd_t *)getmsg.mibattribute.data;
+       item = (struct p80211itemd *)getmsg.mibattribute.data;
        item->did = DIDmib_p2_p2NIC_p2PRISupRange;
        item->status = P80211ENUM_msgitem_status_no_value;
 
index e022de440bd2f3dc0e3818bc6f4eb9ac7f574a5c..3442de374deb8a06b5bf22ba62faecd014411996 100644 (file)
@@ -266,7 +266,7 @@ int prism2mgmt_mibset_mibget(struct wlandevice *wlandev, void *msgp)
        u16 which;
 
        struct p80211msg_dot11req_mibset *msg = msgp;
-       p80211itemd_t *mibitem;
+       struct p80211itemd *mibitem;
 
        msg->resultcode.status = P80211ENUM_msgitem_status_data_ok;
        msg->resultcode.data = P80211ENUM_resultcode_success;
@@ -284,7 +284,7 @@ int prism2mgmt_mibset_mibget(struct wlandevice *wlandev, void *msgp)
         ** MIB table.
         */
 
-       mibitem = (p80211itemd_t *)msg->mibattribute.data;
+       mibitem = (struct p80211itemd *)msg->mibattribute.data;
 
        for (mib = mibtab; mib->did != 0; mib++)
                if (mib->did == mibitem->did && (mib->flag & which))