Linux Netfilter discussions
 help / color / mirror / Atom feed
From: Chen Weilong <chenweilong@huawei.com>
To: davem@davemloft.net, kuznet@ms2.inr.ac.ru, jmorris@namei.org,
	yoshfuji@linux-ipv6.org, kaber@trash.net,
	steffen.klassert@secunet.com, herbert@gondor.apana.org.au
Cc: netdev@vger.kernel.org, netfilter-devel@vger.kernel.org,
	netfilter@vger.kernel.org
Subject: [patch net-next 5/7] ipv4: ERROR: do not initialise globals to 0 or NULL
Date: Fri, 20 Dec 2013 19:57:08 +0800	[thread overview]
Message-ID: <1387540630-11052-6-git-send-email-chenweilong@huawei.com> (raw)
In-Reply-To: <1387540630-11052-1-git-send-email-chenweilong@huawei.com>

From: Weilong Chen <chenweilong@huawei.com>


Signed-off-by: Weilong Chen <chenweilong@huawei.com>
---
 net/ipv4/tcp_probe.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/net/ipv4/tcp_probe.c b/net/ipv4/tcp_probe.c
index 8b97d71..1f2d376 100644
--- a/net/ipv4/tcp_probe.c
+++ b/net/ipv4/tcp_probe.c
@@ -38,7 +38,7 @@ MODULE_DESCRIPTION("TCP cwnd snooper");
 MODULE_LICENSE("GPL");
 MODULE_VERSION("1.1");
 
-static int port __read_mostly = 0;
+static int port __read_mostly;
 MODULE_PARM_DESC(port, "Port to match (0=all)");
 module_param(port, int, 0);
 
@@ -46,7 +46,7 @@ static unsigned int bufsize __read_mostly = 4096;
 MODULE_PARM_DESC(bufsize, "Log buffer size in packets (4096)");
 module_param(bufsize, uint, 0);
 
-static unsigned int fwmark __read_mostly = 0;
+static unsigned int fwmark __read_mostly;
 MODULE_PARM_DESC(fwmark, "skb mark to match (0=no mark)");
 module_param(fwmark, uint, 0);
 
-- 
1.7.12



  parent reply	other threads:[~2013-12-20 11:57 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-12-20 11:57 [patch net-next 0/7] fix checkpatch errors Chen Weilong
2013-12-20 11:57 ` [patch net-next 1/7] ipv4: do clean up with spaces Chen Weilong
2013-12-20 11:57 ` [patch net-next 3/7] ipv4: fix checkpatch error with foo * bar Chen Weilong
2013-12-20 11:57 ` [patch net-next 4/7] ipv4: fix all space errors in file igmp.c Chen Weilong
2013-12-20 11:57 ` Chen Weilong [this message]
2013-12-20 11:57 ` [patch net-next 6/7] ipv4: ERROR: code indent should use tabs where possible Chen Weilong
2013-12-20 17:53   ` Ben Hutchings
2013-12-23  2:11     ` chenweilong
2013-12-20 11:57 ` [patch net-next 7/7] ipv4: ERROR: do not use C99 // comments Chen Weilong

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1387540630-11052-6-git-send-email-chenweilong@huawei.com \
    --to=chenweilong@huawei.com \
    --cc=davem@davemloft.net \
    --cc=herbert@gondor.apana.org.au \
    --cc=jmorris@namei.org \
    --cc=kaber@trash.net \
    --cc=kuznet@ms2.inr.ac.ru \
    --cc=netdev@vger.kernel.org \
    --cc=netfilter-devel@vger.kernel.org \
    --cc=netfilter@vger.kernel.org \
    --cc=steffen.klassert@secunet.com \
    --cc=yoshfuji@linux-ipv6.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox