From patchwork Thu Apr 30 00:01:27 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Vishwanath Pai X-Patchwork-Id: 466332 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 1EDC9140308 for ; Thu, 30 Apr 2015 10:01:35 +1000 (AEST) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751875AbbD3ABa (ORCPT ); Wed, 29 Apr 2015 20:01:30 -0400 Received: from prod-mail-xrelay02.akamai.com ([72.246.2.14]:54462 "EHLO prod-mail-xrelay02.akamai.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751447AbbD3AB2 (ORCPT ); Wed, 29 Apr 2015 20:01:28 -0400 Received: from prod-mail-xrelay02.akamai.com (localhost [127.0.0.1]) by postfix.imss70 (Postfix) with ESMTP id C8DC62868D; Thu, 30 Apr 2015 00:01:27 +0000 (GMT) Received: from prod-mail-relay07.akamai.com (prod-mail-relay07.akamai.com [172.17.121.112]) by prod-mail-xrelay02.akamai.com (Postfix) with ESMTP id B298F28667; Thu, 30 Apr 2015 00:01:27 +0000 (GMT) Received: from bos-lpqrs.kendall.corp.akamai.com (unknown [172.28.13.81]) by prod-mail-relay07.akamai.com (Postfix) with ESMTP id A286E80044; Thu, 30 Apr 2015 00:01:27 +0000 (GMT) Received: from vpai by bos-lpqrs.kendall.corp.akamai.com with local (Exim 4.76) (envelope-from ) id 1Ynbux-0004Zy-Jn; Wed, 29 Apr 2015 20:01:27 -0400 Subject: [PATCH net] net/bonding: Fix code style issues in a previous commit To: "Nikolay Aleksandrov" , "Jay Vosburgh" , "Veaceslav Falico" , "Andy Gospodarek" , , , "Vishwanath Pai" X-Mailer: mail (GNU Mailutils 2.2) Message-Id: From: Pai Date: Wed, 29 Apr 2015 20:01:27 -0400 Sender: netdev-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: netdev@vger.kernel.org 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 --- To unsubscribe from this list: send the line "unsubscribe netdev" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html 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);