summaryrefslogtreecommitdiffstats
path: root/tools/perf/scripts/python/netdev-times.py
diff options
context:
space:
mode:
authorBhumika Goyal <bhumirks@gmail.com>2016-09-16 19:54:37 +0530
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2016-09-17 23:32:13 +0200
commit30b48e2dbe7f4d78fb8f7abbef9851ec36a93dff (patch)
treea6c8f01c344b0605b748d0661980d52fef8e3a68 /tools/perf/scripts/python/netdev-times.py
parentfaa48ea82bcd4b186dd548529d2514a9a2892095 (diff)
downloadlinux-30b48e2dbe7f4d78fb8f7abbef9851ec36a93dff.tar.gz
linux-30b48e2dbe7f4d78fb8f7abbef9851ec36a93dff.zip
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 'tools/perf/scripts/python/netdev-times.py')
0 files changed, 0 insertions, 0 deletions