Thread (72 messages) flat view 72 messages, 16 authors, 2012-02-11

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

From: Mark Brown <hidden>
Date: 2012-02-09 11:28:54
Also in: lkml

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.
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help