summaryrefslogtreecommitdiffstats
path: root/tools/perf/scripts/python/call-graph-from-sql.py
diff options
context:
space:
mode:
authorArushi Singhal <arushisinghal19971997@gmail.com>2018-03-04 02:41:42 +0530
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2018-03-06 04:07:48 -0800
commit2dcce8ed6633e7da1c1439d4948e19278954e7ef (patch)
tree005b29e2f6852b000debfd32eabe0ca048072c8e /tools/perf/scripts/python/call-graph-from-sql.py
parentc3ecca4b2d75305b69593ed11bab15f5842bc1e7 (diff)
downloadlinux-2dcce8ed6633e7da1c1439d4948e19278954e7ef.tar.gz
linux-2dcce8ed6633e7da1c1439d4948e19278954e7ef.zip
staging: rtl8723bs: 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. The Coccinelle semantic patch that makes this change is as follows: @header@ @@ #include <linux/etherdevice.h> @r1@ expression e; @@ -memset(e,0x00,ETH_ALEN); +eth_zero_addr(e); @includeheader depends on r1 && !header@ @@ + #include <linux/etherdevice.h> #include <...> Signed-off-by: Arushi Singhal <arushisinghal19971997@gmail.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'tools/perf/scripts/python/call-graph-from-sql.py')
0 files changed, 0 insertions, 0 deletions