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

Re: [PATCH 01/50] eth: reset addr_assign_type if eth_mac_addr() called

From: Stephen Hemminger <hidden>
Date: 2012-02-08 22:50:09
Also in: lkml

On Wed,  8 Feb 2012 22:10:08 +0100
Danny Kukawka [off-list ref] wrote:
+	if (dev->addr_assign_type & NET_ADDR_RANDOM)
+		dev->addr_assign_type ^= NET_ADDR_RANDOM;
Why not just avoid the conditional, or better yet use bitops?

	dev->addr_assign_type &= ~NET_ADDR_RANDOM;
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help