Author: Wei Yongjun <yongjun_wei@trendmicro.com.cn> Using is_zero_ether_addr() and is_broadcast_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 Signed-off-by: John W. Linville — drivers/net/wireless/airo.c | 6 ++—- 1 file changed, 2 insertions(+), 4 deletions(-) diff …
Aug 23 2012
drivers/net: use is_zero_ether_addr() instead of memcmp()
Author: Wei Yongjun <yongjun_wei@trendmicro.com.cn> 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 Signed-off-by: John W. Linville — drivers/net/wireless/hostap/hostap_info.c | 4 ++– drivers/net/wireless/hostap/hostap_main.c | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) …
Aug 23 2012
orinoco: use is_zero_ether_addr() instead of memcmp()
Author: Wei Yongjun <yongjun_wei@trendmicro.com.cn> 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 Signed-off-by: John W. Linville — drivers/net/wireless/orinoco/wext.c | 7 +++—- 1 file changed, 3 insertions(+), 4 deletions(-) diff –git a/drivers/net/wireless/orinoco/wext.c …
Aug 23 2012
ipw2200: use is_zero_ether_addr() and is_broadcast_ether_addr()
Author: Wei Yongjun <yongjun_wei@trendmicro.com.cn> Using is_zero_ether_addr() and is_broadcast_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 Signed-off-by: John W. Linville — drivers/net/wireless/ipw2x00/ipw2200.c | 11 ++——— 1 file changed, 2 insertions(+), 9 deletions(-) diff …
Aug 23 2012
ipw2100: use is_zero_ether_addr() and is_broadcast_ether_addr()
Author: Wei Yongjun <yongjun_wei@trendmicro.com.cn> Using is_zero_ether_addr() and is_broadcast_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 Signed-off-by: John W. Linville — drivers/net/wireless/ipw2x00/ipw2100.c | 11 ++——— 1 file changed, 2 insertions(+), 9 deletions(-) diff …
Aug 23 2012
staging: r8712u: use is_zero_ether_addr() instead of memcmp()
Author: Wei Yongjun <yongjun_wei@trendmicro.com.cn> Using is_zero_ether_addr() instead of directly use memcmp(addr, “\x00\x00\x00\x00\x00\x00”, ETH_ALEN) 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 Acked-by: Larry Finger Signed-off-by: Greg Kroah-Hartman — drivers/staging/rtl8712/rtl871x_recv.c | 9 +++++—- 1 file changed, 5 insertions(+), 4 deletions(-) …
Aug 23 2012
w5300: using eth_hw_addr_random() for random MAC and set device flag
Author: Wei Yongjun <yongjun_wei@trendmicro.com.cn> 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 Signed-off-by: David S. Miller — drivers/net/ethernet/wiznet/w5300.c | 3 +– 1 file …
Aug 23 2012
w5100: using eth_hw_addr_random() for random MAC and set device flag
Author: Wei Yongjun <yongjun_wei@trendmicro.com.cn> 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 Signed-off-by: David S. Miller — drivers/net/ethernet/wiznet/w5100.c | 3 +– 1 file …
Aug 23 2012
wimax/i2400m: use is_zero_ether_addr() instead of memcmp()
Author: Wei Yongjun <yongjun_wei@trendmicro.com.cn> 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 Signed-off-by: David S. Miller — drivers/net/wimax/i2400m/driver.c | 3 +– 1 file changed, 1 insertion(+), 2 deletions(-) diff –git a/drivers/net/wimax/i2400m/driver.c …
Aug 22 2012
drivers/spi/spi-s3c24xx.c: fix error return code
Author: Julia Lawall <Julia.Lawall@lip6.fr> Initialize return variable before exiting on an error path. A simplified version of the semantic match that finds this problem is as follows: (http://coccinelle.lip6.fr/) // ( if@p1 (\(ret < 0\|ret != 0\)) { ... return ret; } | ret@p1 = 0 ) ... when != ret = e1 when != &ret …