Re: [PATCH 20/50] smsc911x: use dev_hw_addr_random() instead ofrandom_ether_addr()

From: Mark Brown
Date: Thu Feb 09 2012 - 06:28:51 EST


On Wed, Feb 08, 2012 at 10:10:27PM +0100, Danny Kukawka wrote:

> + if (dev->addr_assign_type & NET_ADDR_RANDOM)
> + dev->addr_assign_type ^= NET_ADDR_RANDOM;

It would be clearer to just write

dev->addr_assign_type &= ~NET_ADDR_RANDOM;

to clear the bit - the ^ takes more thinking.
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/