From patchwork Tue Feb 11 05:35:55 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tingwei Liu X-Patchwork-Id: 319117 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 471AB2C0097 for ; Tue, 11 Feb 2014 16:36:56 +1100 (EST) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1750776AbaBKFgh (ORCPT ); Tue, 11 Feb 2014 00:36:37 -0500 Received: from mail-pa0-f48.google.com ([209.85.220.48]:60940 "EHLO mail-pa0-f48.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750721AbaBKFgg (ORCPT ); Tue, 11 Feb 2014 00:36:36 -0500 Received: by mail-pa0-f48.google.com with SMTP id kx10so7187804pab.35 for ; Mon, 10 Feb 2014 21:36:35 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:date:message-id; bh=0OzYhHuEA5DqgegFTOEUZI4GiG59f5BmDsV/eSynX6k=; b=QatAitzKNxOq674Omb3YlwS5osAdpDj8GxqDGZ+fUXuPhj4Iye07Ig2O3fbk+Aw/Q0 aNGSgA2Cg0n9aKQDXKqrUIw/tDmJVaeReZ++1H94Xva8Gu0Ko/jZN6D8yESDS28DhM4i sy67YWJ5kSaJOYn4MTkS5srhWmVZ50TxYeqhNsfd6L9GXxWyyRn+prATmLukBFbgPN3+ nGkNKIHqZnJtcT/hKX8MOR1QqyoyIR6GTC3mRv3usWLnE0jpI9ANy2+05X0ZHcZou+Pb t7dLzhFry7CuW17k1+RhRC4sKCtGCgRjK0s96L2aI45NbpzcmkYRycr3Ot1iXmWAB6Cn 2Ipw== X-Received: by 10.68.255.101 with SMTP id ap5mr42136428pbd.41.1392096995645; Mon, 10 Feb 2014 21:36:35 -0800 (PST) Received: from gmail.com ([221.215.1.254]) by mx.google.com with ESMTPSA id ac7sm39356422pad.12.2014.02.10.21.36.33 for (version=TLSv1 cipher=RC4-SHA bits=128/128); Mon, 10 Feb 2014 21:36:35 -0800 (PST) Received: by gmail.com (Postfix, from userid 0) id A9A4923831A; Tue, 11 Feb 2014 13:35:55 +0800 (CST) From: Tingwei Liu To: netdev@vger.kernel.org Cc: Tingwei Liu , Tony Subject: [PATCH] ipvs: Reduce checkpatch noise in ip_vs_lblc.c Date: Tue, 11 Feb 2014 13:35:55 +0800 Message-Id: <1392096955-12967-1-git-send-email-tingw.liu@gmail.com> X-Mailer: git-send-email 1.6.0.2 Sender: netdev-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: netdev@vger.kernel.org Add whitespace after operator and put open brace { on the previous line Cc: Tony Signed-off-by: Tingwei Liu --- net/netfilter/ipvs/ip_vs_lblc.c | 13 ++++++------- 1 files changed, 6 insertions(+), 7 deletions(-) diff --git a/net/netfilter/ipvs/ip_vs_lblc.c b/net/netfilter/ipvs/ip_vs_lblc.c index ca056a3..547ff33 100644 --- a/net/netfilter/ipvs/ip_vs_lblc.c +++ b/net/netfilter/ipvs/ip_vs_lblc.c @@ -238,7 +238,7 @@ static void ip_vs_lblc_flush(struct ip_vs_service *svc) spin_lock_bh(&svc->sched_lock); tbl->dead = 1; - for (i=0; ibucket[i], list) { ip_vs_lblc_del(en); atomic_dec(&tbl->entries); @@ -265,7 +265,7 @@ static inline void ip_vs_lblc_full_check(struct ip_vs_service *svc) unsigned long now = jiffies; int i, j; - for (i=0, j=tbl->rover; irover; i < IP_VS_LBLC_TAB_SIZE; i++) { j = (j + 1) & IP_VS_LBLC_TAB_MASK; spin_lock(&svc->sched_lock); @@ -321,7 +321,7 @@ static void ip_vs_lblc_check_expire(unsigned long data) if (goal > tbl->max_size/2) goal = tbl->max_size/2; - for (i=0, j=tbl->rover; irover; i < IP_VS_LBLC_TAB_SIZE; i++) { j = (j + 1) & IP_VS_LBLC_TAB_MASK; spin_lock(&svc->sched_lock); @@ -340,7 +340,7 @@ static void ip_vs_lblc_check_expire(unsigned long data) tbl->rover = j; out: - mod_timer(&tbl->periodic_timer, jiffies+CHECK_EXPIRE_INTERVAL); + mod_timer(&tbl->periodic_timer, jiffies + CHECK_EXPIRE_INTERVAL); } @@ -363,7 +363,7 @@ static int ip_vs_lblc_init_svc(struct ip_vs_service *svc) /* * Initialize the hash buckets */ - for (i=0; ibucket[i]); } tbl->max_size = IP_VS_LBLC_TAB_SIZE*16; @@ -536,8 +536,7 @@ out: /* * IPVS LBLC Scheduler structure */ -static struct ip_vs_scheduler ip_vs_lblc_scheduler = -{ +static struct ip_vs_scheduler ip_vs_lblc_scheduler = { .name = "lblc", .refcnt = ATOMIC_INIT(0), .module = THIS_MODULE,