aboutsummaryrefslogtreecommitdiffstats
path: root/arch/sh/mm
diff options
context:
space:
mode:
authorMarek Skuczynski <M.Skuczynski@adbglobal.com>2008-09-05 03:42:58 -0400
committerPaul Mundt <lethal@linux-sh.org>2008-09-07 21:35:05 -0400
commitb6c20e4290a1ef92bcef5ec9dd8e5c7d036153aa (patch)
tree303bca0fb0bf3c8053073d97bf9983778b3a4331 /arch/sh/mm
parent61c66387e640abc0e0aa11519bc48ff9bb50580a (diff)
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 <M.Skuczynski@adbglobal.com> Signed-off-by: Carl Shaw <carl.shaw@st.com> Signed-off-by: Paul Mundt <lethal@linux-sh.org>
Diffstat (limited to 'arch/sh/mm')
-rw-r--r--arch/sh/mm/init.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/arch/sh/mm/init.c b/arch/sh/mm/init.c
index f1a494283c4e..31211bfdc6d8 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,
123 if (!pmd_present(*pmd)) { 123 if (!pmd_present(*pmd)) {
124 pte_t *pte_table; 124 pte_t *pte_table;
125 pte_table = (pte_t *)alloc_bootmem_low_pages(PAGE_SIZE); 125 pte_table = (pte_t *)alloc_bootmem_low_pages(PAGE_SIZE);
126 memset(pte_table, 0, PAGE_SIZE);
127 pmd_populate_kernel(&init_mm, pmd, pte_table); 126 pmd_populate_kernel(&init_mm, pmd, pte_table);
128 } 127 }
129 128