staging: wlang-ng: avoid new typedef CTLX_STATE
PATCH 1/1 staging: wlang-ng: avoid new typedef CTLX_STATE
This patch fixes the following checkpatch.pl warning in hfa384x.h:
WARNING: do not add new typedefs
It applies for typedef CTLX_STATE
Signed-off-by Sergio Paracuellos <[email protected]>
--- drivers/staging/wlan-ng/hfa384x.h | 3 +-- drivers/staging/wlan-ng/hfa384x_usb.c | 2 +- 2 files changed, 2 insertions(+), 3 deletions(-)
drivers/staging/wlan-ng/hfa384x.h +1 -2
@@ -1169,7 +1169,6 @@ enum ctlx_state {CTLX_REQ_COMPLETE ,/* OUT URB complete */ CTLX_RESP_COMPLETE /* IN URB received */ }; -typedef enum ctlx_state CTLX_STATE ;struct hfa384x_usbctlx ;struct hfa384x ;
@@ -1186,7 +1185,7 @@ struct hfa384x_usbctlx {union hfa384x_usbout outbuf;/* pkt buf for OUT */ union hfa384x_usbin inbuf;/* pkt buf for IN(a copy) */ -CTLX_STATE state;/* Tracks running state */ +enum ctlx_state state;/* Tracks running state */ struct completion done;volatile int reapable;/* Food for the reaper task */
drivers/staging/wlan-ng/hfa384x_usb.c +1 -1
@@ -263,7 +263,7 @@ struct usbctlx_completor {static int hfa384x_isgood_pdrcode (u16 pdrcode); -static inline const char *ctlxstr (CTLX_STATE s) +static inline const char *ctlxstr (enum ctlx_state s) {static const char *const ctlx_str[] = {"Initial state" ,
Signature · 1 line
1.9.1
Greg KH
maintainerQuoted 10 lines · Sergio Paracuellos
This patch fixes the following checkpatch.pl warning in
hfa384x.h:
WARNING: do not add new typedefsIt applies for typedef
CTLX_STATESigned-off-by Sergio Paracuellos <[email protected]>--- drivers/staging/wlan-ng/hfa384x.h | 3 +-- drivers/staging/wlan-ng/hfa384x_usb.c | 2 +- 2 files changed, 2 insertions(+), 3 deletions(-)
Subject also wrong :(
PATCH 1/1 staging: wlan-ng: avoid new typedef CTLX_STATE
This patch fixes the following checkpatch.pl warning in hfa384x.h:
WARNING: do not add new typedefs
It applies for typedef CTLX_STATE
Signed-off-by Sergio Paracuellos <[email protected]>
--- drivers/staging/wlan-ng/hfa384x.h | 3 +-- drivers/staging/wlan-ng/hfa384x_usb.c | 2 +- 2 files changed, 2 insertions(+), 3 deletions(-)
drivers/staging/wlan-ng/hfa384x.h +1 -2
@@ -1169,7 +1169,6 @@ enum ctlx_state {CTLX_REQ_COMPLETE ,/* OUT URB complete */ CTLX_RESP_COMPLETE /* IN URB received */ }; -typedef enum ctlx_state CTLX_STATE ;struct hfa384x_usbctlx ;struct hfa384x ;
@@ -1186,7 +1185,7 @@ struct hfa384x_usbctlx {union hfa384x_usbout outbuf;/* pkt buf for OUT */ union hfa384x_usbin inbuf;/* pkt buf for IN(a copy) */ -CTLX_STATE state;/* Tracks running state */ +enum ctlx_state state;/* Tracks running state */ struct completion done;volatile int reapable;/* Food for the reaper task */
drivers/staging/wlan-ng/hfa384x_usb.c +1 -1
@@ -263,7 +263,7 @@ struct usbctlx_completor {static int hfa384x_isgood_pdrcode (u16 pdrcode); -static inline const char *ctlxstr (CTLX_STATE s) +static inline const char *ctlxstr (enum ctlx_state s) {static const char *const ctlx_str[] = {"Initial state" ,
Signature · 1 line
1.9.1