From: Marek Skuczynski Date: Fri, 5 Sep 2008 07:42:58 +0000 (+0900) Subject: sh: remove unnecessary memset after alloc_bootmem_low_pages X-Git-Tag: v2.6.28-rc1~99^2~80 X-Git-Url: http://pilppa.com/gitweb/?a=commitdiff_plain;h=b6c20e4290a1ef92bcef5ec9dd8e5c7d036153aa;p=linux-2.6-omap-h63xx.git sh: remove unnecessary memset after alloc_bootmem_low_pages Because alloc_bootmem functions return the allocated memory always zeroed, an additional call of memset on allocated memory is unnecessary. Signed-off-by: Marek Skuczynski Signed-off-by: Carl Shaw Signed-off-by: Paul Mundt --- diff --git a/arch/sh/mm/init.c b/arch/sh/mm/init.c index f1a494283c4..31211bfdc6d 100644 --- a/arch/sh/mm/init.c +++ b/arch/sh/mm/init.c @@ -123,7 +123,6 @@ void __init page_table_range_init(unsigned long start, unsigned long end, if (!pmd_present(*pmd)) { pte_t *pte_table; pte_table = (pte_t *)alloc_bootmem_low_pages(PAGE_SIZE); - memset(pte_table, 0, PAGE_SIZE); pmd_populate_kernel(&init_mm, pmd, pte_table); }