Thanks, I pushed this to master.
On Fri, Jul 08, 2011 at 10:48:47AM -0700, Justin Pettit wrote:
> Looks good.
>
> --Justin
>
>
> On Jul 8, 2011, at 10:47 AM, Ben Pfaff wrote:
>
> > There's no value in using !! on an operand of && or || as done here.
> > ---
> > lib/packets.h | 4 ++--
> > 1 files changed, 2 insertions(+), 2 deletions(-)
> >
> > diff --git a/lib/packets.h b/lib/packets.h
> > index 20065ad..8e13a25 100644
> > --- a/lib/packets.h
> > +++ b/lib/packets.h
> > @@ -56,8 +56,8 @@ static inline bool eth_addr_is_local(const uint8_t ea[6])
> > {
> > /* Local if it is either a locally administered address or a Nicira
> > random
> > * address. */
> > - return !!(ea[0] & 2)
> > - || (ea[0] == 0x00 && ea[1] == 0x23 && ea[2] == 0x20 && !!(ea[3] &
> > 0x80));
> > + return ea[0] & 2
> > + || (ea[0] == 0x00 && ea[1] == 0x23 && ea[2] == 0x20 && ea[3] &
> > 0x80);
> > }
> > static inline bool eth_addr_is_zero(const uint8_t ea[6])
> > {
> > --
> > 1.7.4.4
> >
> > _______________________________________________
> > dev mailing list
> > [email protected]
> > http://openvswitch.org/mailman/listinfo/dev
>
_______________________________________________
dev mailing list
[email protected]
http://openvswitch.org/mailman/listinfo/dev