aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSergio Paracuellos <[email protected]>2016-09-28 20:19:10 +0200
committerGreg Kroah-Hartman <[email protected]>2016-10-02 17:00:48 +0200
commitdc0bb002b3f2029e55c58a9a26fb49b4dd06e652 (patch)
tree28a9fd703fb1c22cec0a9cba6a5d0891877b1e7a
parent4400334b568dbfb3eb0cabe8fadfd5c43e59ca02 (diff)
staging: wlang-ng: avoid new typedef: hfa384x_ScanResult_t
This patch fixes the following checkpatch.pl warning in hfa384x.h: WARNING: do not add new typedefs It applies for typedef hfa384x_ScanResult_t Signed-off-by: Sergio Paracuellos <[email protected]> Signed-off-by: Greg Kroah-Hartman <[email protected]>
-rw-r--r--drivers/staging/wlan-ng/hfa384x.h6
-rw-r--r--drivers/staging/wlan-ng/prism2sta.c2
2 files changed, 4 insertions, 4 deletions
diff --git a/drivers/staging/wlan-ng/hfa384x.h b/drivers/staging/wlan-ng/hfa384x.h
index 97a796e4c28f..1da5a673d1f5 100644
--- a/drivers/staging/wlan-ng/hfa384x.h
+++ b/drivers/staging/wlan-ng/hfa384x.h
@@ -671,11 +671,11 @@ struct hfa384x_ScanResultSub {
u16 proberesp_rate;
} __packed;
-typedef struct hfa384x_ScanResult {
+struct hfa384x_ScanResult {
u16 rsvd;
u16 scanreason;
struct hfa384x_ScanResultSub result[HFA384x_SCANRESULT_MAX];
-} __packed hfa384x_ScanResult_t;
+} __packed;
/*-- Inquiry Frame, Diagnose: ChInfo Results & Subfields--*/
typedef struct hfa384x_ChInfoResultSub {
@@ -764,7 +764,7 @@ typedef struct hfa384x_KeyIDChanged {
typedef union hfa384x_infodata {
struct hfa384x_CommTallies16 commtallies16;
struct hfa384x_CommTallies32 commtallies32;
- hfa384x_ScanResult_t scanresult;
+ struct hfa384x_ScanResult scanresult;
hfa384x_ChInfoResult_t chinforesult;
hfa384x_HScanResult_t hscanresult;
hfa384x_LinkStatus_t linkstatus;
diff --git a/drivers/staging/wlan-ng/prism2sta.c b/drivers/staging/wlan-ng/prism2sta.c
index 8cf81c6a6388..dfb7a73053f6 100644
--- a/drivers/staging/wlan-ng/prism2sta.c
+++ b/drivers/staging/wlan-ng/prism2sta.c
@@ -1035,7 +1035,7 @@ static void prism2sta_inf_scanresults(struct wlandevice *wlandev,
{
hfa384x_t *hw = wlandev->priv;
int nbss;
- hfa384x_ScanResult_t *sr = &(inf->info.scanresult);
+ struct hfa384x_ScanResult *sr = &(inf->info.scanresult);
int i;
struct hfa384x_JoinRequest_data joinreq;
int result;