From: Chen Weilong Subject: [PATCH] netfilter: fix checkpatch error for netfilter Date: Thu, 19 Dec 2013 19:24:24 +0800 Message-ID: <1387452264-8896-1-git-send-email-chenweilong@huawei.com> Mime-Version: 1.0 Return-path: Sender: netdev-owner@vger.kernel.org List-ID: Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: pablo@netfilter.org, davem@davemloft.net, kaber@trash.net, kadlec@blackhole.kfki.hu Cc: netdev@vger.kernel.org, netfilter@vger.kernel.org From: Weilong Chen This patch fix some checkpatch errors,clean up the code. Signed-off-by: Weilong Chen --- net/netfilter/nf_tables_api.c | 4 ++-- net/netfilter/xt_osf.c | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/net/netfilter/nf_tables_api.c b/net/netfilter/nf_tables_api.c index f93b7d0..045efa1 100644 --- a/net/netfilter/nf_tables_api.c +++ b/net/netfilter/nf_tables_api.c @@ -130,7 +130,7 @@ static int __nf_tables_chain_type_lookup(int family, const struct nlattr *nla) { int i; - for (i=0; iname)) return i; @@ -814,7 +814,7 @@ static int nf_tables_newchain(struct sock *nlsk, struct sk_buff *skb, const struct nlattr * const nla[]) { const struct nfgenmsg *nfmsg = nlmsg_data(nlh); - const struct nlattr * uninitialized_var(name); + const struct nlattr *uninitialized_var(name); const struct nft_af_info *afi; struct nft_table *table; struct nft_chain *chain; diff --git a/net/netfilter/xt_osf.c b/net/netfilter/xt_osf.c index 7174611..b93154c 100644 --- a/net/netfilter/xt_osf.c +++ b/net/netfilter/xt_osf.c @@ -371,7 +371,7 @@ static int __init xt_osf_init(void) int err = -EINVAL; int i; - for (i=0; ifinger_entry); -- 1.7.12