]> git.baikalelectronics.ru Git - kernel.git/commit
wimax/i2400m: use is_zero_ether_addr() instead of memcmp()
authorWei Yongjun <yongjun_wei@trendmicro.com.cn>
Wed, 22 Aug 2012 20:49:33 +0000 (20:49 +0000)
committerDavid S. Miller <davem@davemloft.net>
Fri, 24 Aug 2012 17:30:26 +0000 (13:30 -0400)
commit31fbf98b4ea452ae1992b74eea97082017d646ae
treee983cee7389fc296678438ed5a39aba18ee4ce9c
parenta0b16150782207d54fd2b715a382e56e70274715
wimax/i2400m: use is_zero_ether_addr() instead of memcmp()

Using is_zero_ether_addr() instead of directly use
memcmp() to determine if the ethernet address is all
zeros.

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/wimax/i2400m/driver.c