From patchwork Thu Dec 19 11:24:24 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: chenweilong X-Patchwork-Id: 303292 X-Patchwork-Delegate: davem@davemloft.net Return-Path: X-Original-To: patchwork-incoming@ozlabs.org Delivered-To: patchwork-incoming@ozlabs.org Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by ozlabs.org (Postfix) with ESMTP id 7D33D2C00AD for ; Thu, 19 Dec 2013 22:25:02 +1100 (EST) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752757Ab3LSLY6 (ORCPT ); Thu, 19 Dec 2013 06:24:58 -0500 Received: from szxga03-in.huawei.com ([119.145.14.66]:43138 "EHLO szxga03-in.huawei.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751455Ab3LSLY5 (ORCPT ); Thu, 19 Dec 2013 06:24:57 -0500 Received: from 172.24.2.119 (EHLO szxeml206-edg.china.huawei.com) ([172.24.2.119]) by szxrg03-dlp.huawei.com (MOS 4.4.3-GA FastPath queued) with ESMTP id AHZ64901; Thu, 19 Dec 2013 19:24:32 +0800 (CST) Received: from SZXEML424-HUB.china.huawei.com (10.82.67.163) by szxeml206-edg.china.huawei.com (172.24.2.59) with Microsoft SMTP Server (TLS) id 14.3.158.1; Thu, 19 Dec 2013 19:24:27 +0800 Received: from localhost (10.135.74.202) by szxeml424-hub.china.huawei.com (10.82.67.163) with Microsoft SMTP Server id 14.3.158.1; Thu, 19 Dec 2013 19:24:26 +0800 From: Chen Weilong To: , , , CC: , 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> X-Mailer: git-send-email 1.8.1.msysgit.1 MIME-Version: 1.0 X-Originating-IP: [10.135.74.202] X-CFilter-Loop: Reflected Sender: netdev-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: netdev@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);