From: Nikolay Aleksandrov <razor@blackwall.org>
To: Pai <vpai@akamai.com>, Jay Vosburgh <j.vosburgh@gmail.com>,
Veaceslav Falico <vfalico@gmail.com>,
Andy Gospodarek <andy@greyhouse.net>,
netdev@vger.kernel.org, linux-kernel@vger.kernel.org
Subject: Re: [PATCH net] net/bonding: Fix code style issues in a previous commit
Date: Thu, 30 Apr 2015 11:16:02 +0200 [thread overview]
Message-ID: <5541F2D2.8070002@blackwall.org> (raw)
In-Reply-To: <E1Ynbux-0004Zy-Jn@bos-lpqrs.kendall.corp.akamai.com>
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 <vpai@akamai.com>
>
> 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
prev parent reply other threads:[~2015-04-30 9:16 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-04-30 0:01 [PATCH net] net/bonding: Fix code style issues in a previous commit Pai
2015-04-30 9:16 ` Nikolay Aleksandrov [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=5541F2D2.8070002@blackwall.org \
--to=razor@blackwall.org \
--cc=andy@greyhouse.net \
--cc=j.vosburgh@gmail.com \
--cc=linux-kernel@vger.kernel.org \
--cc=netdev@vger.kernel.org \
--cc=vfalico@gmail.com \
--cc=vpai@akamai.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).