sh: remove unnecessary memset after alloc_bootmem_low_pages
authorMarek Skuczynski <M.Skuczynski@adbglobal.com>
Fri, 5 Sep 2008 07:42:58 +0000 (16:42 +0900)
committerPaul Mundt <lethal@linux-sh.org>
Mon, 8 Sep 2008 01:35:05 +0000 (10:35 +0900)
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 <M.Skuczynski@adbglobal.com>
Signed-off-by: Carl Shaw <carl.shaw@st.com>
Signed-off-by: Paul Mundt <lethal@linux-sh.org>
arch/sh/mm/init.c

index f1a494283c4ee9341a35d92879f3f3ab24f44188..31211bfdc6d8481f8d8e02ff918d88e40a972fb0 100644 (file)
@@ -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);
                }