From patchwork Thu Jul 11 19:15:44 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Dragos Foianu X-Patchwork-Id: 258612 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by ozlabs.org (Postfix) with ESMTP id E50C92C0341 for ; Fri, 12 Jul 2013 05:16:26 +1000 (EST) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756489Ab3GKTP5 (ORCPT ); Thu, 11 Jul 2013 15:15:57 -0400 Received: from mail-ee0-f47.google.com ([74.125.83.47]:54885 "EHLO mail-ee0-f47.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751610Ab3GKTP4 (ORCPT ); Thu, 11 Jul 2013 15:15:56 -0400 Received: by mail-ee0-f47.google.com with SMTP id e49so5736177eek.34 for ; Thu, 11 Jul 2013 12:15:54 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:date:message-id:x-mailer; bh=Q0Sa1nQaX2qgw5lnlwpFhEKVR5MIyUEFmW4+9CQr/zM=; b=SUpG59jgZEfuy44Q15vYqieXtKLkHrGvvPc24t82DtsUm2Jx+7G1r/M02uMba3mblr PFYxSYhVJrdNGvtEMWDXF08/4gd/bH21Q+bJHiJamoZc6jUAhgYzWKyygfPc3IhV4nLx Oh26EMef0PS4zsF0OsRdm11GhJQxWGubyMew26S0pCyo21j8mQgesD1UyyQBAwUeFwvn Ftf7NcfyNdFJ7DIcDeRuWSZ7EwpFSmVdMpcPOhOmHtq+5fGpBIq9UQ/01kNzepZBZmD/ y1pprWhoohRbOCdJxIehxuwdi9zKTRITSKjNDGY0O4z0w8C4lLJKejpNkpwvw+UJ/gZr rb6A== X-Received: by 10.14.206.196 with SMTP id l44mr43355484eeo.142.1373570154146; Thu, 11 Jul 2013 12:15:54 -0700 (PDT) Received: from localhost.localdomain (p6.eregie.pub.ro. [141.85.0.106]) by mx.google.com with ESMTPSA id r54sm12347279eev.8.2013.07.11.12.15.51 for (version=TLSv1.2 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Thu, 11 Jul 2013 12:15:53 -0700 (PDT) From: Dragos Foianu To: wensong@linux-vs.org Cc: horms@verge.net.au, ja@ssi.bg, pablo@netfilter.org, kaber@trash.net, kadlec@blackhole.kfki.hu, davem@davemloft.net, netdev@vger.kernel.org, lvs-devel@vger.kernel.org, netfilter-devel@vger.kernel.org, netfilter@vger.kernel.org, coreteam@netfilter.org, linux-kernel@vger.kernel.org, Dragos Foianu Subject: [PATCH] ipvs: fixed style errors in ip_vs_dh Date: Thu, 11 Jul 2013 22:15:44 +0300 Message-Id: <1373570144-4785-1-git-send-email-dragos.foianu@gmail.com> X-Mailer: git-send-email 1.7.10.4 Sender: netfilter-devel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: netfilter-devel@vger.kernel.org found with the help of checkpatch.pl Signed-off-by: Dragos Foianu --- net/netfilter/ipvs/ip_vs_dh.c | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/net/netfilter/ipvs/ip_vs_dh.c b/net/netfilter/ipvs/ip_vs_dh.c index c3b8454..8ab2fc8 100644 --- a/net/netfilter/ipvs/ip_vs_dh.c +++ b/net/netfilter/ipvs/ip_vs_dh.c @@ -110,7 +110,7 @@ ip_vs_dh_reassign(struct ip_vs_dh_state *s, struct ip_vs_service *svc) b = &s->buckets[0]; p = &svc->destinations; empty = list_empty(p); - for (i=0; idest, 1); if (dest) ip_vs_dest_put(dest); @@ -142,7 +142,7 @@ static void ip_vs_dh_flush(struct ip_vs_dh_state *s) struct ip_vs_dest *dest; b = &s->buckets[0]; - for (i=0; idest, 1); if (dest) { ip_vs_dest_put(dest); @@ -244,8 +244,7 @@ ip_vs_dh_schedule(struct ip_vs_service *svc, const struct sk_buff *skb, /* * IPVS DH Scheduler structure */ -static struct ip_vs_scheduler ip_vs_dh_scheduler = -{ +static struct ip_vs_scheduler ip_vs_dh_scheduler = { .name = "dh", .refcnt = ATOMIC_INIT(0), .module = THIS_MODULE,