diff options
author | Himangi Saraogi <[email protected]> | 2014-07-19 17:05:13 +0530 |
---|---|---|
committer | Geert Uytterhoeven <[email protected]> | 2014-11-10 09:56:44 +0100 |
commit | f0b99a643e9613beb28af43333bbfa90d4bf85cc (patch) | |
tree | 304d57b146ae69886137a2cf3727699343e479b3 /tools/perf/util/scripting-engines/trace-event-python.c | |
parent | bcf8eb09b564096d47f9740ac16057e5f7c8d0f1 (diff) |
m68k/mm: Eliminate memset after alloc_bootmem_pages
alloc_bootmem and related functions always return a zeroed region of memory.
Thus a memset after calls to these functions is unnecessary.
The following Coccinelle semantic patch was used for making the change:
@@
expression E,E1;
@@
E = \(alloc_bootmem\|alloc_bootmem_low\|alloc_bootmem_pages\|alloc_bootmem_low_pages\)(...)
... when != E
- memset(E,0,E1);
Signed-off-by: Himangi Saraogi <[email protected]>
Acked-by: Julia Lawall <[email protected]>
Signed-off-by: Geert Uytterhoeven <[email protected]>
Diffstat (limited to 'tools/perf/util/scripting-engines/trace-event-python.c')
0 files changed, 0 insertions, 0 deletions