[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20100615165121.GB2623@psychotron.redhat.com>
Date: Tue, 15 Jun 2010 18:51:21 +0200
From: Jiri Pirko <jpirko@...hat.com>
To: Stephen Hemminger <shemminger@...tta.com>
Cc: netdev@...r.kernel.org, davem@...emloft.net, kaber@...sh.net,
eric.dumazet@...il.com
Subject: Re: [PATCH net-next-2.6 3/3] bridge: use rx_handler_data pointer to
store net_bridge_port pointer V2
Tue, Jun 15, 2010 at 06:30:35PM CEST, shemminger@...tta.com wrote:
>On Tue, 15 Jun 2010 15:28:34 +0200
>Jiri Pirko <jpirko@...hat.com> wrote:
>
>> diff --git a/drivers/net/ksz884x.c b/drivers/net/ksz884x.c
>> index 7805bbf..e7f4703 100644
>> --- a/drivers/net/ksz884x.c
>> +++ b/drivers/net/ksz884x.c
>> @@ -5718,7 +5718,7 @@ static void dev_set_promiscuous(struct net_device *dev, struct dev_priv *priv,
>> * from the bridge.
>> */
>> if ((hw->features & STP_SUPPORT) && !promiscuous &&
>> - dev->br_port) {
>> + dev->priv_flags & IFF_BRIDGE_PORT) {
>
>I like this patch except for one thing. The mask here should be surrounded
>by paren's to avoid the possible confusion about && and & in same if
>statement. The C precedence rules allow this but humans get confused.
Right, reposted.
Thanks for review
--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Powered by blists - more mailing lists