net: set dev->addr_assign_type correctly
Not a bitfield, but a plain value. Signed-off-by: Jiri Pirko <jiri@resnulli.us> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:

committed by
David S. Miller

parent
f652151640
commit
e41b2d7fe7
@@ -1068,7 +1068,7 @@ static int ethoc_probe(struct platform_device *pdev)
|
||||
}
|
||||
|
||||
if (random_mac)
|
||||
netdev->addr_assign_type |= NET_ADDR_RANDOM;
|
||||
netdev->addr_assign_type = NET_ADDR_RANDOM;
|
||||
|
||||
/* register MII bus */
|
||||
priv->mdio = mdiobus_alloc();
|
||||
|
Reference in New Issue
Block a user