[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <1387492262.2353.26.camel@joe-AO722>
Date: Thu, 19 Dec 2013 14:31:02 -0800
From: Joe Perches <joe@...ches.com>
To: Florian Fainelli <f.fainelli@...il.com>
Cc: davem@...emloft.net, netdev@...r.kernel.org
Subject: Re: [PATCH net-next 3/9] net: phy: dp83640: fix checkpath error
On Tue, 2013-12-17 at 21:38 -0800, Florian Fainelli wrote:
> diff --git a/drivers/net/phy/dp83640.c b/drivers/net/phy/dp83640.c
[]
> @@ -851,8 +851,8 @@ static int match(struct sk_buff *skb, unsigned int type, struct rxts *rxts)
>
> seqid = (u16 *)(data + offset + OFF_PTP_SEQUENCE_ID);
>
> - return (rxts->msgtype == (*msgtype & 0xf) &&
> - rxts->seqid == ntohs(*seqid));
> + return rxts->msgtype == (*msgtype & 0xf) &&
> + rxts->seqid == ntohs(*seqid);
I think this isn't an improvement.
Maybe:
return rxts->msgtype == (*msgtype & 0xf) &&
rxts->seqid == ntohs(*seqid);
or
return (rxts->msgtype == (*msgtype & 0xf)) &&
(rxts->seqid == ntohs(*seqid));
--
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