diff options
author | Xin Long <lucien.xin@gmail.com> | 2017-08-05 07:59:59 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2017-08-07 00:33:42 -0400 |
commit | 5210601945f5aedaf2d7f13a88436e27a39c6a8a (patch) | |
tree | 0b196af33c9451344db77f832dbc4d26188e10e5 /net/sctp/sm_statetable.c | |
parent | 4785c7ae1848244da3435ba5269f6288c15975c7 (diff) |
sctp: remove the typedef sctp_state_t
This patch is to remove the typedef sctp_state_t, and
replace with enum sctp_state in the places where it's
using this typedef.
Signed-off-by: Xin Long <lucien.xin@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/sctp/sm_statetable.c')
-rw-r--r-- | net/sctp/sm_statetable.c | 16 |
1 files changed, 9 insertions, 7 deletions
diff --git a/net/sctp/sm_statetable.c b/net/sctp/sm_statetable.c index 3e958c1c4b95..f46c11bffea7 100644 --- a/net/sctp/sm_statetable.c +++ b/net/sctp/sm_statetable.c | |||
@@ -52,9 +52,10 @@ other_event_table[SCTP_NUM_OTHER_TYPES][SCTP_STATE_NUM_STATES]; | |||
52 | static const sctp_sm_table_entry_t | 52 | static const sctp_sm_table_entry_t |
53 | timeout_event_table[SCTP_NUM_TIMEOUT_TYPES][SCTP_STATE_NUM_STATES]; | 53 | timeout_event_table[SCTP_NUM_TIMEOUT_TYPES][SCTP_STATE_NUM_STATES]; |
54 | 54 | ||
55 | static const sctp_sm_table_entry_t *sctp_chunk_event_lookup(struct net *net, | 55 | static const sctp_sm_table_entry_t *sctp_chunk_event_lookup( |
56 | enum sctp_cid cid, | 56 | struct net *net, |
57 | sctp_state_t state); | 57 | enum sctp_cid cid, |
58 | enum sctp_state state); | ||
58 | 59 | ||
59 | 60 | ||
60 | static const sctp_sm_table_entry_t bug = { | 61 | static const sctp_sm_table_entry_t bug = { |
@@ -78,7 +79,7 @@ static const sctp_sm_table_entry_t bug = { | |||
78 | 79 | ||
79 | const sctp_sm_table_entry_t *sctp_sm_lookup_event(struct net *net, | 80 | const sctp_sm_table_entry_t *sctp_sm_lookup_event(struct net *net, |
80 | sctp_event_t event_type, | 81 | sctp_event_t event_type, |
81 | sctp_state_t state, | 82 | enum sctp_state state, |
82 | sctp_subtype_t event_subtype) | 83 | sctp_subtype_t event_subtype) |
83 | { | 84 | { |
84 | switch (event_type) { | 85 | switch (event_type) { |
@@ -967,9 +968,10 @@ static const sctp_sm_table_entry_t timeout_event_table[SCTP_NUM_TIMEOUT_TYPES][S | |||
967 | TYPE_SCTP_EVENT_TIMEOUT_AUTOCLOSE, | 968 | TYPE_SCTP_EVENT_TIMEOUT_AUTOCLOSE, |
968 | }; | 969 | }; |
969 | 970 | ||
970 | static const sctp_sm_table_entry_t *sctp_chunk_event_lookup(struct net *net, | 971 | static const sctp_sm_table_entry_t *sctp_chunk_event_lookup( |
971 | enum sctp_cid cid, | 972 | struct net *net, |
972 | sctp_state_t state) | 973 | enum sctp_cid cid, |
974 | enum sctp_state state) | ||
973 | { | 975 | { |
974 | if (state > SCTP_STATE_MAX) | 976 | if (state > SCTP_STATE_MAX) |
975 | return &bug; | 977 | return &bug; |