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 <himangi774@gmail.com>
Acked-by: Julia Lawall <julia.lawall@lip6.fr>
Signed-off-by: Geert Uytterhoeven <geert@linux-m68k.org>
2014-11-10 09:56:44 +01:00
..
cache.c Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/geert/linux-m68k 2012-01-26 12:43:57 -08:00
fault.c m68k: Convert arch/m68k/mm/fault.c to pr_*() 2013-12-30 21:01:10 +01:00
hwtest.c m68k: Reformat arch/m68k/mm/hwtest.c 2014-10-03 10:50:56 +02:00
init.c m68k/mm: Eliminate memset after alloc_bootmem_pages 2014-11-10 09:56:44 +01:00
kmap.c m68k/mm: kmap spelling/grammar fixes 2013-12-30 21:01:11 +01:00
Makefile m68k: compile appropriate mm arch files for ColdFire MMU support 2011-12-30 10:20:39 +10:00
mcfmmu.c m68k: move to a single instance of free_initmem() 2012-11-14 08:50:56 +01:00
memory.c m68k: fix ColdFire clear cache operation 2012-07-17 15:49:34 +10:00
motorola.c m68k: Increase initial mapping to 8 or 16 MiB if possible 2014-05-28 10:11:54 +02:00
sun3kmap.c m68k: missing exports 2007-07-20 08:24:49 -07:00
sun3mmu.c m68k: move to a single instance of free_initmem() 2012-11-14 08:50:56 +01:00