Commit eeb1c062 authored by Shraddha Barke's avatar Shraddha Barke Committed by Greg Kroah-Hartman

Staging: wilc1000: Remove typedefs for struct

The Linux kernel coding style guidelines suggest not using typedefs for
structure and enum types. This patch gets rid of the typedefs for
Ack_session_info_t.

The following Coccinelle semantic patch detects the cases for struct type:

@tn@
identifier i;
type td;
@@

-typedef
 struct i { ... }
-td
 ;

@@
type tn.td;
identifier tn.i;
@@

-td
+ struct i
Signed-off-by: default avatarShraddha Barke <shraddha.6596@gmail.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 2cb1df7e
...@@ -291,13 +291,13 @@ uint32_t Statisitcs_totalAcks = 0, Statisitcs_DroppedAcks = 0; ...@@ -291,13 +291,13 @@ uint32_t Statisitcs_totalAcks = 0, Statisitcs_DroppedAcks = 0;
#ifdef TCP_ACK_FILTER #ifdef TCP_ACK_FILTER
struct Ack_session_info; struct Ack_session_info;
typedef struct Ack_session_info { struct Ack_session_info {
uint32_t Ack_seq_num; uint32_t Ack_seq_num;
uint32_t Bigger_Ack_num; uint32_t Bigger_Ack_num;
uint16_t src_port; uint16_t src_port;
uint16_t dst_port; uint16_t dst_port;
uint16_t status; uint16_t status;
} Ack_session_info_t; };
typedef struct { typedef struct {
uint32_t ack_num; uint32_t ack_num;
...@@ -318,7 +318,7 @@ struct Ack_session_info *Alloc_head; ...@@ -318,7 +318,7 @@ struct Ack_session_info *Alloc_head;
#define MAX_TCP_SESSION 25 #define MAX_TCP_SESSION 25
#define MAX_PENDING_ACKS 256 #define MAX_PENDING_ACKS 256
Ack_session_info_t Acks_keep_track_info[2 * MAX_TCP_SESSION]; struct Ack_session_info Acks_keep_track_info[2 * MAX_TCP_SESSION];
Pending_Acks_info_t Pending_Acks_info[MAX_PENDING_ACKS]; Pending_Acks_info_t Pending_Acks_info[MAX_PENDING_ACKS];
uint32_t PendingAcks_arrBase; uint32_t PendingAcks_arrBase;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment