On Sun, 19 Aug 2012, Winkler, Tomas wrote:
There seems also to be an opportunity in drivers/scsi/qla2xxx/qla_init.c:
memcmp(icb->enode_mac, "\0\0\0\0\0\0", sizeof(icb->enode_mac))
If you plan do semantic patch then there are also examples of:
./drivers/staging/rtl8712/rtl871x_recv.c:
if (!memcmp(pattrib->bssid, "\x0\x0\x0\x0\x0\x0", ETH_ALEN) |
similarly
is_broadcast_ether_addr() to replace memcmp with 6 off 0xFF
and endless number of memcmp that can be replaced with
ether_addr_equal()
OK, thanks for the suggestions. I will take a look.
julia
_______________________________________________
devel mailing list
devel@xxxxxxxxxxxxxxxxxxxxxx
http://driverdev.linuxdriverproject.org/mailman/listinfo/devel