Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751252AbbD3JQK (ORCPT ); Thu, 30 Apr 2015 05:16:10 -0400 Received: from mail-wi0-f180.google.com ([209.85.212.180]:35058 "EHLO mail-wi0-f180.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750812AbbD3JQF (ORCPT ); Thu, 30 Apr 2015 05:16:05 -0400 Message-ID: <5541F2D2.8070002@blackwall.org> Date: Thu, 30 Apr 2015 11:16:02 +0200 From: Nikolay Aleksandrov User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.5.0 MIME-Version: 1.0 To: Pai , Jay Vosburgh , Veaceslav Falico , Andy Gospodarek , netdev@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH net] net/bonding: Fix code style issues in a previous commit References: In-Reply-To: Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1639 Lines: 51 On 04/30/2015 02:01 AM, Pai wrote: > This fixes a few coding style issues in my previous patch: > commit e913fb279c56 > ("net: Fix Kernel Panic in bonding driver debugfs file: rlb_hash_table") > > Signed-off-by: Vishwanath Pai > > diff --git a/drivers/net/bonding/bond_main.c b/drivers/net/bonding/bond_main.c > index d5fe5d5..ab3eeb1 100644 > --- a/drivers/net/bonding/bond_main.c > +++ b/drivers/net/bonding/bond_main.c > @@ -4543,8 +4543,8 @@ unsigned int bond_get_num_tx_queues(void) > */ > int bond_create(struct net *net, const char *name) > { > - struct net_device *bond_dev; > struct bonding *bond; > + struct net_device *bond_dev; > struct alb_bond_info *bond_info; > int res; > > @@ -4559,8 +4559,7 @@ int bond_create(struct net *net, const char *name) > return -ENOMEM; > } > > - /* > - * Initialize rx_hashtbl_used_head to RLB_NULL_INDEX. > + /* Initialize rx_hashtbl_used_head to RLB_NULL_INDEX. > * It is set to 0 by default which is wrong. > */ > bond = netdev_priv(bond_dev); > Hi, Thanks for following up on my comments, but I think Dave usually prefers such cosmetic changes via net-next, of course that's for him to say. For the local variable arrangement I meant longest to shortest as in reverse pyramid: struct alb_bond_info *bond_info; struct net_device *bond_dev; struct bonding *bond; int res; Cheers, Nik -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/