aboutsummaryrefslogtreecommitdiffstats
path: root/net/netfilter
diff options
context:
space:
mode:
authorTingwei Liu <tingw.liu@gmail.com>2014-02-11 04:17:21 -0500
committerSimon Horman <horms@verge.net.au>2014-03-06 22:36:21 -0500
commit411fd527bc3f8357b499c760f7cd03633a0c7de2 (patch)
treeede5ba8bc12781d694db64eed35d4d1d4ad5e891 /net/netfilter
parentc61b0c1328288d946bc9a9131f89c46e74d2d23b (diff)
ipvs: Reduce checkpatch noise in ip_vs_lblc.c
Add whitespace after operator and put open brace { on the previous line Cc: Tingwei Liu <liutingwei@hisense.com> Cc: lvs-devel@vger.kernel.org Signed-off-by: Tingwei Liu <tingw.liu@gmail.com> Signed-off-by: Simon Horman <horms@verge.net.au>
Diffstat (limited to 'net/netfilter')
-rw-r--r--net/netfilter/ipvs/ip_vs_lblc.c13
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 ca056a331e60..547ff33c1efd 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)
238 238
239 spin_lock_bh(&svc->sched_lock); 239 spin_lock_bh(&svc->sched_lock);
240 tbl->dead = 1; 240 tbl->dead = 1;
241 for (i=0; i<IP_VS_LBLC_TAB_SIZE; i++) { 241 for (i = 0; i < IP_VS_LBLC_TAB_SIZE; i++) {
242 hlist_for_each_entry_safe(en, next, &tbl->bucket[i], list) { 242 hlist_for_each_entry_safe(en, next, &tbl->bucket[i], list) {
243 ip_vs_lblc_del(en); 243 ip_vs_lblc_del(en);
244 atomic_dec(&tbl->entries); 244 atomic_dec(&tbl->entries);
@@ -265,7 +265,7 @@ static inline void ip_vs_lblc_full_check(struct ip_vs_service *svc)
265 unsigned long now = jiffies; 265 unsigned long now = jiffies;
266 int i, j; 266 int i, j;
267 267
268 for (i=0, j=tbl->rover; i<IP_VS_LBLC_TAB_SIZE; i++) { 268 for (i = 0, j = tbl->rover; i < IP_VS_LBLC_TAB_SIZE; i++) {
269 j = (j + 1) & IP_VS_LBLC_TAB_MASK; 269 j = (j + 1) & IP_VS_LBLC_TAB_MASK;
270 270
271 spin_lock(&svc->sched_lock); 271 spin_lock(&svc->sched_lock);
@@ -321,7 +321,7 @@ static void ip_vs_lblc_check_expire(unsigned long data)
321 if (goal > tbl->max_size/2) 321 if (goal > tbl->max_size/2)
322 goal = tbl->max_size/2; 322 goal = tbl->max_size/2;
323 323
324 for (i=0, j=tbl->rover; i<IP_VS_LBLC_TAB_SIZE; i++) { 324 for (i = 0, j = tbl->rover; i < IP_VS_LBLC_TAB_SIZE; i++) {
325 j = (j + 1) & IP_VS_LBLC_TAB_MASK; 325 j = (j + 1) & IP_VS_LBLC_TAB_MASK;
326 326
327 spin_lock(&svc->sched_lock); 327 spin_lock(&svc->sched_lock);
@@ -340,7 +340,7 @@ static void ip_vs_lblc_check_expire(unsigned long data)
340 tbl->rover = j; 340 tbl->rover = j;
341 341
342 out: 342 out:
343 mod_timer(&tbl->periodic_timer, jiffies+CHECK_EXPIRE_INTERVAL); 343 mod_timer(&tbl->periodic_timer, jiffies + CHECK_EXPIRE_INTERVAL);
344} 344}
345 345
346 346
@@ -363,7 +363,7 @@ static int ip_vs_lblc_init_svc(struct ip_vs_service *svc)
363 /* 363 /*
364 * Initialize the hash buckets 364 * Initialize the hash buckets
365 */ 365 */
366 for (i=0; i<IP_VS_LBLC_TAB_SIZE; i++) { 366 for (i = 0; i < IP_VS_LBLC_TAB_SIZE; i++) {
367 INIT_HLIST_HEAD(&tbl->bucket[i]); 367 INIT_HLIST_HEAD(&tbl->bucket[i]);
368 } 368 }
369 tbl->max_size = IP_VS_LBLC_TAB_SIZE*16; 369 tbl->max_size = IP_VS_LBLC_TAB_SIZE*16;
@@ -536,8 +536,7 @@ out:
536/* 536/*
537 * IPVS LBLC Scheduler structure 537 * IPVS LBLC Scheduler structure
538 */ 538 */
539static struct ip_vs_scheduler ip_vs_lblc_scheduler = 539static struct ip_vs_scheduler ip_vs_lblc_scheduler = {
540{
541 .name = "lblc", 540 .name = "lblc",
542 .refcnt = ATOMIC_INIT(0), 541 .refcnt = ATOMIC_INIT(0),
543 .module = THIS_MODULE, 542 .module = THIS_MODULE,