Tag: 1e9ee6f7b6ad68dc67444fff13bb7324087874e3

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(-) …

Continue reading