]> git.karo-electronics.de Git - linux-beck.git/commitdiff
staging: wlang-ng: avoid new typedef: hfa384x_dbmcommsquality_t
authorSergio Paracuellos <sergio.paracuellos@gmail.com>
Wed, 28 Sep 2016 18:19:04 +0000 (20:19 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 2 Oct 2016 15:00:48 +0000 (17:00 +0200)
This patch fixes the following checkpatch.pl warning in hfa384x.h:
WARNING: do not add new typedefs

It applies for typedef hfa384x_dbmcommsquality_t

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

index 41d8a878ec192c451982483635cd21205f461ae2..13902363a34db6332c2aaab20a7a3cbf3451f9d5 100644 (file)
  *--------------------------------------------------------------------
  */
 #define                HFA384x_RID_DBMCOMMSQUALITY_LEN  \
-       ((u16)sizeof(hfa384x_dbmcommsquality_t))
+       ((u16)sizeof(struct hfa384x_dbmcommsquality))
 #define                HFA384x_RID_JOINREQUEST_LEN \
        ((u16)sizeof(struct hfa384x_JoinRequest_data))
 
@@ -461,11 +461,11 @@ struct hfa384x_commsquality {
 } __packed;
 
 /*-- Information Record: dmbcommsquality --*/
-typedef struct hfa384x_dbmcommsquality {
+struct hfa384x_dbmcommsquality {
        u16 CQdbm_currBSS;
        u16 ASLdbm_currBSS;
        u16 ANLdbm_currFC;
-} __packed hfa384x_dbmcommsquality_t;
+} __packed;
 
 /*--------------------------------------------------------------------
  * FRAME STRUCTURES: Communication Frames