sctp: remove the typedef sctp_scope_policy_t
authorXin Long <lucien.xin@gmail.com>
Sat, 5 Aug 2017 11:59:53 +0000 (19:59 +0800)
committerDavid S. Miller <davem@davemloft.net>
Mon, 7 Aug 2017 04:33:41 +0000 (21:33 -0700)
commit701ef3e6c74be771a76be39817941e68e7228644
tree0cd5050b30210e018dfc3840a2dafaddc7f2fd3d
parent125c29820252bfa5bf8081e75618e4ee7e9487da
sctp: remove the typedef sctp_scope_policy_t

This patch is to remove the typedef sctp_scope_policy_t and keep
it's members as an anonymous enum.

It is also to define SCTP_SCOPE_POLICY_MAX to replace the num 3
in sysctl.c to make codes clear.

Signed-off-by: Xin Long <lucien.xin@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/net/sctp/constants.h
net/sctp/sysctl.c