diff options
| author | Bhumika Goyal <[email protected]> | 2016-09-16 19:54:37 +0530 |
|---|---|---|
| committer | Greg Kroah-Hartman <[email protected]> | 2016-09-17 23:32:13 +0200 |
| commit | 30b48e2dbe7f4d78fb8f7abbef9851ec36a93dff (patch) | |
| tree | a6c8f01c344b0605b748d0661980d52fef8e3a68 /tools/perf/scripts/python/export-to-postgresql.py | |
| parent | faa48ea82bcd4b186dd548529d2514a9a2892095 (diff) | |
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 <[email protected]>
Acked-by: Julia Lawall <[email protected]>
Signed-off-by: Greg Kroah-Hartman <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions