All of lore.kernel.org
 help / color / mirror / Atom feed
From: Rafael Aquini <aquini@linux.com>
To: Nicolas Kaiser <nikai@nikai.net>
Cc: David Miller <davem@davemloft.net>, Joe Perches <joe@perches.com>,
	Jay Vosburgh <fubar@us.ibm.com>,
	Andy Gospodarek <andy@greyhouse.net>,
	shemminger@vyatta.com, netdev@vger.kernel.org,
	kernel-janitors@vger.kernel.org
Subject: Re: [PATCH] net/bonding: adjust codingstyle for bond_3ad files.
Date: Fri, 06 May 2011 14:56:04 +0000	[thread overview]
Message-ID: <20110506145602.GA5591@x61.tchesoft.com> (raw)
In-Reply-To: <20110506150114.25513c92@absol.kitzblitz>

Howdy Nicolas,

On Fri, May 06, 2011 at 03:01:14PM +0200, Nicolas Kaiser wrote:
> The indentation of parentheses looks correct to me in the original version.
> However, this expression can also be simplified like
> 
>                 if (active && active->lag_ports &&
>                     active->lag_ports->is_enabled &&
> -                   (__agg_has_partner(active) ||
> -                    (!__agg_has_partner(active) && !__agg_has_partner(best)))) {
> +                   (__agg_has_partner(active) || !__agg_has_partner(best))) {
>                         if (!(!active->actor_oper_aggregator_key &&
>                               best->actor_oper_aggregator_key)) {
>                                 best = NULL;
> 
> Last October I submitted such a patch which also simplified the
> double negation in the subsequent expression.

Thanks for the feedback!

Send me this patch of yours, I'll try to merge our paths and resubmit adding
you as a signer as well 

Cheers!
-- 
Rafael Aquini <aquini@linux.com>

WARNING: multiple messages have this Message-ID (diff)
From: Rafael Aquini <aquini@linux.com>
To: Nicolas Kaiser <nikai@nikai.net>
Cc: David Miller <davem@davemloft.net>, Joe Perches <joe@perches.com>,
	Jay Vosburgh <fubar@us.ibm.com>,
	Andy Gospodarek <andy@greyhouse.net>,
	shemminger@vyatta.com, netdev@vger.kernel.org,
	kernel-janitors@vger.kernel.org
Subject: Re: [PATCH] net/bonding: adjust codingstyle for bond_3ad files.
Date: Fri, 6 May 2011 11:56:04 -0300	[thread overview]
Message-ID: <20110506145602.GA5591@x61.tchesoft.com> (raw)
In-Reply-To: <20110506150114.25513c92@absol.kitzblitz>

Howdy Nicolas,

On Fri, May 06, 2011 at 03:01:14PM +0200, Nicolas Kaiser wrote:
> The indentation of parentheses looks correct to me in the original version.
> However, this expression can also be simplified like
> 
>                 if (active && active->lag_ports &&
>                     active->lag_ports->is_enabled &&
> -                   (__agg_has_partner(active) ||
> -                    (!__agg_has_partner(active) && !__agg_has_partner(best)))) {
> +                   (__agg_has_partner(active) || !__agg_has_partner(best))) {
>                         if (!(!active->actor_oper_aggregator_key &&
>                               best->actor_oper_aggregator_key)) {
>                                 best = NULL;
> 
> Last October I submitted such a patch which also simplified the
> double negation in the subsequent expression.

Thanks for the feedback!

Send me this patch of yours, I'll try to merge our paths and resubmit adding
you as a signer as well 

Cheers!
-- 
Rafael Aquini <aquini@linux.com>

  reply	other threads:[~2011-05-06 14:56 UTC|newest]

Thread overview: 42+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-05-06 11:50 [PATCH] net/bonding: adjust codingstyle for bond_3ad files Rafael Aquini
2011-05-06 11:50 ` Rafael Aquini
2011-05-06 13:01 ` Nicolas Kaiser
2011-05-06 13:01   ` Nicolas Kaiser
2011-05-06 14:56   ` Rafael Aquini [this message]
2011-05-06 14:56     ` Rafael Aquini
2011-05-07  1:27 ` Rafael Aquini
2011-05-07  1:27   ` Rafael Aquini
2011-05-07  1:51   ` Joe Perches
2011-05-07  1:51     ` Joe Perches
2011-05-07 17:31     ` Rafael Aquini
2011-05-07 17:31       ` Rafael Aquini
2011-05-07 18:02       ` Joe Perches
2011-05-07 18:02         ` Joe Perches
2011-05-07 19:35         ` matt mooney
2011-05-07 19:35           ` matt mooney
2011-05-07 20:24           ` Joe Perches
2011-05-07 20:24             ` Joe Perches
2011-05-08 23:08           ` Håkon Løvdal
2011-05-08 23:08             ` Håkon Løvdal
2011-05-08 23:10             ` David Miller
2011-05-08 23:10               ` David Miller
2011-05-09  0:08               ` Håkon Løvdal
2011-05-09  0:08                 ` Håkon Løvdal
2011-05-09  0:12                 ` David Miller
2011-05-09  0:12                   ` David Miller
2011-05-09  1:30                   ` Håkon Løvdal
2011-05-09  1:30                     ` Håkon Løvdal
2011-05-07 21:25         ` Jay Vosburgh
2011-05-07 21:25           ` Jay Vosburgh
2011-05-07 21:37           ` Rafael Aquini
2011-05-07 21:37             ` Rafael Aquini
2011-05-10  0:08 ` Rafael Aquini
2011-05-10  0:08   ` Rafael Aquini
2011-05-10  0:15   ` Joe Perches
2011-05-10  0:15     ` Joe Perches
2011-05-10  2:00   ` Jay Vosburgh
2011-05-10  2:00     ` Jay Vosburgh
2011-05-10  2:11     ` Joe Perches
2011-05-10  2:11       ` Joe Perches
2011-05-10 12:22     ` Rafael Aquini
2011-05-10 12:22       ` Rafael Aquini

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=20110506145602.GA5591@x61.tchesoft.com \
    --to=aquini@linux.com \
    --cc=andy@greyhouse.net \
    --cc=davem@davemloft.net \
    --cc=fubar@us.ibm.com \
    --cc=joe@perches.com \
    --cc=kernel-janitors@vger.kernel.org \
    --cc=netdev@vger.kernel.org \
    --cc=nikai@nikai.net \
    --cc=shemminger@vyatta.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.