diff options
author | Bhumika Goyal <bhumirks@gmail.com> | 2016-09-16 14:24:37 (GMT) |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2016-09-17 21:32:13 (GMT) |
commit | 30b48e2dbe7f4d78fb8f7abbef9851ec36a93dff (patch) | |
tree | a6c8f01c344b0605b748d0661980d52fef8e3a68 /include/scsi | |
parent | faa48ea82bcd4b186dd548529d2514a9a2892095 (diff) | |
download | linux-30b48e2dbe7f4d78fb8f7abbef9851ec36a93dff.tar.xz |
Staging: ks7010: Replace memset with eth_zero_addr
Use eth_zero_addr to assign zero address to the given address array
instead of memset when the second argument in memset is address
of zero. Coccinelle was used to do the replacement and add the
header file linux/etherdevice.h if not already present.
Script:
@header@
@@
#include <linux/etherdevice.h>
@r1@
expression e;
@@
-memset(e,0,ETH_ALEN);
+eth_zero_addr(e);
@includeheader depends on r1 && !header@
@@
+ #include <linux/etherdevice.h>
#include <...>
Signed-off-by: Bhumika Goyal <bhumirks@gmail.com>
Acked-by: Julia Lawall <julia.lawall@lip6.fr>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'include/scsi')
0 files changed, 0 insertions, 0 deletions