summaryrefslogtreecommitdiffstats
path: root/kernel/net/sched/em_ipset.c
diff options
context:
space:
mode:
authorJozsef Kadlecsik <kadlec@blackhole.kfki.hu>2014-11-18 08:00:56 +0100
committerJozsef Kadlecsik <kadlec@blackhole.kfki.hu>2014-11-18 08:00:56 +0100
commit1ad6ec25d566c8e1c8fe2f16d265f8f0cafdc76a (patch)
treebe755194771c47f263f9162b00365fa19d16ada2 /kernel/net/sched/em_ipset.c
parent920ddfa09efbd72a0fe43251cd19bc2c27aa3662 (diff)
styles warned by checkpatch.pl fixed
Diffstat (limited to 'kernel/net/sched/em_ipset.c')
-rw-r--r--kernel/net/sched/em_ipset.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/kernel/net/sched/em_ipset.c b/kernel/net/sched/em_ipset.c
index 2729d7e..53185d5 100644
--- a/kernel/net/sched/em_ipset.c
+++ b/kernel/net/sched/em_ipset.c
@@ -57,6 +57,7 @@ static void em_ipset_destroy(struct tcf_proto *p, struct tcf_ematch *em)
#endif
{
const struct xt_set_info *set = (const void *) em->data;
+
if (set) {
#ifdef HAVE_TCF_EMATCH_STRUCT_NET
ip_set_nfnl_put(em->net, set->index);
@@ -87,7 +88,9 @@ static int em_ipset_match(struct sk_buff *skb, struct tcf_ematch *em,
acpar.family = NFPROTO_IPV6;
if (!pskb_network_may_pull(skb, sizeof(struct ipv6hdr)))
return 0;
- /* doesn't call ipv6_find_hdr() because ipset doesn't use thoff, yet */
+ /* doesn't call ipv6_find_hdr() because ipset doesn't use
+ * thoff, yet
+ */
acpar.thoff = sizeof(struct ipv6hdr);
break;
default: