diff options
author | Jamal Hadi Salim <jhs@mojatatu.com> | 2016-06-05 10:41:32 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2016-06-07 18:53:54 -0400 |
commit | 0b0f43fe2e7291aa97b1febeaa5a0de453d007ca (patch) | |
tree | c2f1c26ffbf8ec9d9b606a58b018622a023b2ae5 /net/sched/cls_api.c | |
parent | be119913689724b6fe84caa779c2508547c4e8d5 (diff) |
net sched: indentation and other OCD stylistic fixes
Signed-off-by: Jamal Hadi Salim <jhs@mojatatu.com>
Acked-by: Cong Wang <xiyou.wangcong@gmail.com>
Diffstat (limited to 'net/sched/cls_api.c')
-rw-r--r-- | net/sched/cls_api.c | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/net/sched/cls_api.c b/net/sched/cls_api.c index a75864d93142..aafa6bce173e 100644 --- a/net/sched/cls_api.c +++ b/net/sched/cls_api.c | |||
@@ -351,8 +351,9 @@ errout: | |||
351 | return err; | 351 | return err; |
352 | } | 352 | } |
353 | 353 | ||
354 | static int tcf_fill_node(struct net *net, struct sk_buff *skb, struct tcf_proto *tp, | 354 | static int tcf_fill_node(struct net *net, struct sk_buff *skb, |
355 | unsigned long fh, u32 portid, u32 seq, u16 flags, int event) | 355 | struct tcf_proto *tp, unsigned long fh, u32 portid, |
356 | u32 seq, u16 flags, int event) | ||
356 | { | 357 | { |
357 | struct tcmsg *tcm; | 358 | struct tcmsg *tcm; |
358 | struct nlmsghdr *nlh; | 359 | struct nlmsghdr *nlh; |
@@ -474,9 +475,11 @@ static int tc_dump_tfilter(struct sk_buff *skb, struct netlink_callback *cb) | |||
474 | TC_H_MIN(tcm->tcm_info) != tp->protocol) | 475 | TC_H_MIN(tcm->tcm_info) != tp->protocol) |
475 | continue; | 476 | continue; |
476 | if (t > s_t) | 477 | if (t > s_t) |
477 | memset(&cb->args[1], 0, sizeof(cb->args)-sizeof(cb->args[0])); | 478 | memset(&cb->args[1], 0, |
479 | sizeof(cb->args)-sizeof(cb->args[0])); | ||
478 | if (cb->args[1] == 0) { | 480 | if (cb->args[1] == 0) { |
479 | if (tcf_fill_node(net, skb, tp, 0, NETLINK_CB(cb->skb).portid, | 481 | if (tcf_fill_node(net, skb, tp, 0, |
482 | NETLINK_CB(cb->skb).portid, | ||
480 | cb->nlh->nlmsg_seq, NLM_F_MULTI, | 483 | cb->nlh->nlmsg_seq, NLM_F_MULTI, |
481 | RTM_NEWTFILTER) <= 0) | 484 | RTM_NEWTFILTER) <= 0) |
482 | break; | 485 | break; |