Commit 22068311 authored by Zhitong Wang's avatar Zhitong Wang Committed by Patrick McHardy

netfilter: fix some coding styles and remove moduleparam.h

Fix some coding styles and remove moduleparam.h
Signed-off-by: default avatarZhitong Wang <zhitong.wangzt@alibaba-inc.com>
Signed-off-by: default avatarPatrick McHardy <kaber@trash.net>
parent a79ff731
...@@ -137,9 +137,8 @@ nf_nat_fn(unsigned int hooknum, ...@@ -137,9 +137,8 @@ nf_nat_fn(unsigned int hooknum,
ret = nf_nat_rule_find(skb, hooknum, in, out, ret = nf_nat_rule_find(skb, hooknum, in, out,
ct); ct);
if (ret != NF_ACCEPT) { if (ret != NF_ACCEPT)
return ret; return ret;
}
} else } else
pr_debug("Already setup manip %s for ct %p\n", pr_debug("Already setup manip %s for ct %p\n",
maniptype == IP_NAT_MANIP_SRC ? "SRC" : "DST", maniptype == IP_NAT_MANIP_SRC ? "SRC" : "DST",
......
...@@ -6,7 +6,6 @@ ...@@ -6,7 +6,6 @@
*/ */
#include <linux/module.h> #include <linux/module.h>
#include <linux/moduleparam.h>
#include <linux/udp.h> #include <linux/udp.h>
#include <net/netfilter/nf_nat_helper.h> #include <net/netfilter/nf_nat_helper.h>
......
...@@ -13,12 +13,10 @@ ...@@ -13,12 +13,10 @@
#include <linux/netfilter.h> #include <linux/netfilter.h>
#include <linux/module.h> #include <linux/module.h>
#include <linux/mutex.h> #include <linux/mutex.h>
#include <linux/skbuff.h>
#include <linux/vmalloc.h> #include <linux/vmalloc.h>
#include <linux/stddef.h> #include <linux/stddef.h>
#include <linux/err.h> #include <linux/err.h>
#include <linux/percpu.h> #include <linux/percpu.h>
#include <linux/moduleparam.h>
#include <linux/notifier.h> #include <linux/notifier.h>
#include <linux/kernel.h> #include <linux/kernel.h>
#include <linux/netdevice.h> #include <linux/netdevice.h>
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment