net/sixlowpan: Simplify redundant check in the previous commit. If fullmac == true, then we must also have usemac == true and so checking usemac in that context is redundant.

This commit is contained in:
Gregory Nutt
2018-04-16 10:33:35 -06:00
parent d59c97208c
commit 5fc2f7a36c
+1 -1
View File
@@ -517,7 +517,7 @@ static void uncompress_addr(FAR const struct netdev_varaddr_s *addr,
if (fullmac)
{
ipaddr[7] ^= usemac ? HTONS(0x0200) :0x0200;
ipaddr[7] ^= HTONS(0x0200);
}
/* If we took the data from packet, then update the packet pointer */