w5100: using eth_hw_addr_random() for random MAC and set device flag
authorWei Yongjun <yongjun_wei@trendmicro.com.cn>
Wed, 22 Aug 2012 21:28:19 +0000 (21:28 +0000)
committerDavid S. Miller <davem@davemloft.net>
Fri, 24 Aug 2012 17:30:27 +0000 (13:30 -0400)
commitd68bb7e1a65f2604156958ae03a556b6a207514b
tree651788a99d3ac199a4ca468384dd0ecdb5c14f7b
parent9213bb8325747d00b6d9d5aea6ccde6a72c8a1fa
w5100: using eth_hw_addr_random() for random MAC and set device flag

Using eth_hw_addr_random() to generate a random Ethernet address
(MAC) to be used by a net device and set addr_assign_type.
Not need to duplicating its implementation.

spatch with a semantic match is used to found this problem.
(http://coccinelle.lip6.fr/)

Signed-off-by: Wei Yongjun <yongjun_wei@trendmicro.com.cn>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/wiznet/w5100.c
This page took 0.031411 seconds and 5 git commands to generate.