netfilter-devel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] Netfilter: Code cleanup on net/netfilter
@ 2010-03-25  9:21 wzt.wzt
  2010-03-25 10:33 ` Patrick McHardy
  0 siblings, 1 reply; 3+ messages in thread
From: wzt.wzt @ 2010-03-25  9:21 UTC (permalink / raw)
  To: linux-kernel; +Cc: netfilter-devel, kaber

Fix some coding styles and remove moduleparam.h

Signed-off-by: Zhitong Wang <zhitong.wangzt@alibaba-inc.com>

---
 net/ipv4/netfilter/nf_nat_h323.c       |    1 -
 net/ipv4/netfilter/nf_nat_standalone.c |    3 +--
 net/ipv4/netfilter/nf_nat_tftp.c       |    1 -
 net/netfilter/nf_conntrack_proto.c     |    2 --
 4 files changed, 1 insertions(+), 6 deletions(-)

diff --git a/net/ipv4/netfilter/nf_nat_h323.c b/net/ipv4/netfilter/nf_nat_h323.c
index 7e8e6fc..d4c0618 100644
--- a/net/ipv4/netfilter/nf_nat_h323.c
+++ b/net/ipv4/netfilter/nf_nat_h323.c
@@ -10,7 +10,6 @@
  */
 
 #include <linux/module.h>
-#include <linux/moduleparam.h>
 #include <linux/tcp.h>
 #include <net/tcp.h>
 
diff --git a/net/ipv4/netfilter/nf_nat_standalone.c b/net/ipv4/netfilter/nf_nat_standalone.c
index 5678e95..0b49248 100644
--- a/net/ipv4/netfilter/nf_nat_standalone.c
+++ b/net/ipv4/netfilter/nf_nat_standalone.c
@@ -137,9 +137,8 @@ nf_nat_fn(unsigned int hooknum,
 				ret = nf_nat_rule_find(skb, hooknum, in, out,
 						       ct);
 
-			if (ret != NF_ACCEPT) {
+			if (ret != NF_ACCEPT)
 				return ret;
-			}
 		} else
 			pr_debug("Already setup manip %s for ct %p\n",
 				 maniptype == IP_NAT_MANIP_SRC ? "SRC" : "DST",
diff --git a/net/ipv4/netfilter/nf_nat_tftp.c b/net/ipv4/netfilter/nf_nat_tftp.c
index b096e81..7274a43 100644
--- a/net/ipv4/netfilter/nf_nat_tftp.c
+++ b/net/ipv4/netfilter/nf_nat_tftp.c
@@ -6,7 +6,6 @@
  */
 
 #include <linux/module.h>
-#include <linux/moduleparam.h>
 #include <linux/udp.h>
 
 #include <net/netfilter/nf_nat_helper.h>
diff --git a/net/netfilter/nf_conntrack_proto.c b/net/netfilter/nf_conntrack_proto.c
index 1a4568b..f71cd5d 100644
--- a/net/netfilter/nf_conntrack_proto.c
+++ b/net/netfilter/nf_conntrack_proto.c
@@ -13,12 +13,10 @@
 #include <linux/netfilter.h>
 #include <linux/module.h>
 #include <linux/mutex.h>
-#include <linux/skbuff.h>
 #include <linux/vmalloc.h>
 #include <linux/stddef.h>
 #include <linux/err.h>
 #include <linux/percpu.h>
-#include <linux/moduleparam.h>
 #include <linux/notifier.h>
 #include <linux/kernel.h>
 #include <linux/netdevice.h>
-- 
1.6.5.3

^ permalink raw reply related	[flat|nested] 3+ messages in thread

* Re: [PATCH] Netfilter: Code cleanup on net/netfilter
  2010-03-25  9:21 [PATCH] Netfilter: Code cleanup on net/netfilter wzt.wzt
@ 2010-03-25 10:33 ` Patrick McHardy
  2010-03-26  0:52   ` wzt wzt
  0 siblings, 1 reply; 3+ messages in thread
From: Patrick McHardy @ 2010-03-25 10:33 UTC (permalink / raw)
  To: wzt.wzt; +Cc: linux-kernel, netfilter-devel

wzt.wzt@gmail.com wrote:
> Fix some coding styles and remove moduleparam.h

I've already applied your patches to remove moduleparam.h.
Please base your patches on

git://git.kernel.org/pub/scm/linux/kernel/git/kaber/nf-next-2.6.git

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [PATCH] Netfilter: Code cleanup on net/netfilter
  2010-03-25 10:33 ` Patrick McHardy
@ 2010-03-26  0:52   ` wzt wzt
  0 siblings, 0 replies; 3+ messages in thread
From: wzt wzt @ 2010-03-26  0:52 UTC (permalink / raw)
  To: Patrick McHardy; +Cc: linux-kernel, netfilter-devel

ok, thx, i'll send a new patch soon.

On Thu, Mar 25, 2010 at 6:33 PM, Patrick McHardy <kaber@trash.net> wrote:
> wzt.wzt@gmail.com wrote:
>> Fix some coding styles and remove moduleparam.h
>
> I've already applied your patches to remove moduleparam.h.
> Please base your patches on
>
> git://git.kernel.org/pub/scm/linux/kernel/git/kaber/nf-next-2.6.git
>

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2010-03-26  0:52 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-03-25  9:21 [PATCH] Netfilter: Code cleanup on net/netfilter wzt.wzt
2010-03-25 10:33 ` Patrick McHardy
2010-03-26  0:52   ` wzt wzt

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).