summaryrefslogtreecommitdiff
path: root/net/sctp/probe.c
diff options
context:
space:
mode:
authorXin Long <lucien.xin@gmail.com>2017-08-11 05:23:57 +0300
committerDavid S. Miller <davem@davemloft.net>2017-08-11 20:02:44 +0300
commit172a1599ba88df7147f6503a75686fb89c8a1f3f (patch)
tree648a935f2ba80deaf06b7fc671cc83a4a125fbbd /net/sctp/probe.c
parent8ee821aea39c6bf4142c9319adecea6d3e1af4a2 (diff)
downloadlinux-172a1599ba88df7147f6503a75686fb89c8a1f3f.tar.xz
sctp: remove the typedef sctp_disposition_t
This patch is to remove the typedef sctp_disposition_t, and replace with enum sctp_disposition in the places where it's using this typedef. It's also to fix the indent for many functions' defination. Signed-off-by: Xin Long <lucien.xin@gmail.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/sctp/probe.c')
-rw-r--r--net/sctp/probe.c13
1 files changed, 7 insertions, 6 deletions
diff --git a/net/sctp/probe.c b/net/sctp/probe.c
index 34097a167431..1280f85a598d 100644
--- a/net/sctp/probe.c
+++ b/net/sctp/probe.c
@@ -127,12 +127,13 @@ static const struct file_operations sctpprobe_fops = {
.llseek = noop_llseek,
};
-static sctp_disposition_t jsctp_sf_eat_sack(struct net *net,
- const struct sctp_endpoint *ep,
- const struct sctp_association *asoc,
- const union sctp_subtype type,
- void *arg,
- struct sctp_cmd_seq *commands)
+static enum sctp_disposition jsctp_sf_eat_sack(
+ struct net *net,
+ const struct sctp_endpoint *ep,
+ const struct sctp_association *asoc,
+ const union sctp_subtype type,
+ void *arg,
+ struct sctp_cmd_seq *commands)
{
struct sctp_chunk *chunk = arg;
struct sk_buff *skb = chunk->skb;