Files
linux/arch/m68k/mm
Himangi Saraogi f0b99a643e 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]>
2014-11-10 09:56:44 +01:00
..
2014-10-03 10:50:56 +02:00
2013-12-30 21:01:11 +01:00
2007-07-20 08:24:49 -07:00