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>
This commit is contained in:
committed by
David S. Miller
parent
4785c7ae18
commit
5210601945
@ -558,7 +558,7 @@ static inline int __sctp_style(const struct sock *sk, sctp_socket_type_t style)
|
||||
/* Is the association in this state? */
|
||||
#define sctp_state(asoc, state) __sctp_state((asoc), (SCTP_STATE_##state))
|
||||
static inline int __sctp_state(const struct sctp_association *asoc,
|
||||
sctp_state_t state)
|
||||
enum sctp_state state)
|
||||
{
|
||||
return asoc->state == state;
|
||||
}
|
||||
|
Reference in New Issue
Block a user