diff options
author | Jamal Hadi Salim <jhs@mojatatu.com> | 2016-09-18 14:45:33 +0200 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2016-09-20 04:04:14 +0200 |
commit | 5a7a5555a362f60350668cd124df9a396f546c61 (patch) | |
tree | 81c098fab52f338cedd8ba5d89c786ce3cd128c5 /net/sched/act_police.c | |
parent | net sched actions police: peg drop stats for conforming traffic (diff) | |
download | linux-5a7a5555a362f60350668cd124df9a396f546c61.tar.xz linux-5a7a5555a362f60350668cd124df9a396f546c61.zip |
net sched: stylistic cleanups
Signed-off-by: Jamal Hadi Salim <jhs@mojatatu.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/sched/act_police.c')
-rw-r--r-- | net/sched/act_police.c | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/net/sched/act_police.c b/net/sched/act_police.c index ba7074b391ae..d1bd248fe146 100644 --- a/net/sched/act_police.c +++ b/net/sched/act_police.c @@ -263,8 +263,8 @@ static int tcf_act_police(struct sk_buff *skb, const struct tc_action *a, return police->tcf_action; } -static int -tcf_act_police_dump(struct sk_buff *skb, struct tc_action *a, int bind, int ref) +static int tcf_act_police_dump(struct sk_buff *skb, struct tc_action *a, + int bind, int ref) { unsigned char *b = skb_tail_pointer(skb); struct tcf_police *police = to_police(a); @@ -349,14 +349,12 @@ static struct pernet_operations police_net_ops = { .size = sizeof(struct tc_action_net), }; -static int __init -police_init_module(void) +static int __init police_init_module(void) { return tcf_register_action(&act_police_ops, &police_net_ops); } -static void __exit -police_cleanup_module(void) +static void __exit police_cleanup_module(void) { tcf_unregister_action(&act_police_ops, &police_net_ops); } |