From mboxrd@z Thu Jan 1 00:00:00 1970 From: Rafael Aquini Date: Fri, 06 May 2011 14:56:04 +0000 Subject: Re: [PATCH] net/bonding: adjust codingstyle for bond_3ad files. Message-Id: <20110506145602.GA5591@x61.tchesoft.com> List-Id: References: <20110506115037.GA3299@x61.tchesoft.com> <20110506150114.25513c92@absol.kitzblitz> In-Reply-To: <20110506150114.25513c92@absol.kitzblitz> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: Nicolas Kaiser Cc: David Miller , Joe Perches , Jay Vosburgh , Andy Gospodarek , shemminger@vyatta.com, netdev@vger.kernel.org, kernel-janitors@vger.kernel.org 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