aboutsummaryrefslogtreecommitdiff
path: root/lib/packets.h
diff options
context:
space:
mode:
authorBen Pfaff <blp@nicira.com>2011-07-08 10:47:22 -0700
committerBen Pfaff <blp@nicira.com>2011-07-08 10:47:22 -0700
commit347d48798f40f7e835082338e92eb2e5a21a39a2 (patch)
tree14cd1af09533ed98d506c849e6782f7c33112073 /lib/packets.h
parent12d685891c72d6009f0303edb94b3b6fabcd6228 (diff)
packets: Remove unneeded !! from eth_addr_is_local().
There's no value in using !! on an operand of && or || as done here.
Diffstat (limited to 'lib/packets.h')
-rw-r--r--lib/packets.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/packets.h b/lib/packets.h
index 20065ade..8e13a25b 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])
{