diff options
author | Xin Long <lucien.xin@gmail.com> | 2017-08-11 04:23:50 +0200 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2017-08-11 19:02:44 +0200 |
commit | b7ef2618a0bf75c1e480b05739b0c5f2a42081cd (patch) | |
tree | 48a2a8cd659d20232f307af55d935524e3026dc8 /include/net/sctp/sctp.h | |
parent | sctp: remove the typedef sctp_dbg_objcnt_entry_t (diff) | |
download | linux-b7ef2618a0bf75c1e480b05739b0c5f2a42081cd.tar.xz linux-b7ef2618a0bf75c1e480b05739b0c5f2a42081cd.zip |
sctp: remove the typedef sctp_socket_type_t
This patch is to remove the typedef sctp_socket_type_t, and
replace with enum sctp_socket_type 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 'include/net/sctp/sctp.h')
-rw-r--r-- | include/net/sctp/sctp.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/include/net/sctp/sctp.h b/include/net/sctp/sctp.h index 24ff7931d38c..06b4f515e157 100644 --- a/include/net/sctp/sctp.h +++ b/include/net/sctp/sctp.h @@ -550,7 +550,8 @@ static inline int sctp_ep_hashfn(struct net *net, __u16 lport) /* Is a socket of this style? */ #define sctp_style(sk, style) __sctp_style((sk), (SCTP_SOCKET_##style)) -static inline int __sctp_style(const struct sock *sk, sctp_socket_type_t style) +static inline int __sctp_style(const struct sock *sk, + enum sctp_socket_type style) { return sctp_sk(sk)->type == style; } |