Commit 50fbef1d authored by Herbert Xu's avatar Herbert Xu Committed by Linus Torvalds

[PATCH] remove unnecessary memsets from swsusp and pmdisk

Here's the patch that removes the memset calls from both pmdisk and swsusp.
Signed-off-by: default avatarAndrew Morton <akpm@osdl.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@osdl.org>
parent 34485ee4
...@@ -806,7 +806,6 @@ static int __init relocate_pagedir(void) ...@@ -806,7 +806,6 @@ static int __init relocate_pagedir(void)
err = -ENOMEM; err = -ENOMEM;
while ((m = (void *) __get_free_pages(GFP_ATOMIC, pagedir_order))) { while ((m = (void *) __get_free_pages(GFP_ATOMIC, pagedir_order))) {
memset(m, 0, PAGE_SIZE);
if (!does_collide_order(old_pagedir, (unsigned long)m, if (!does_collide_order(old_pagedir, (unsigned long)m,
pagedir_order)) { pagedir_order)) {
pm_pagedir_nosave = new_pagedir = m; pm_pagedir_nosave = new_pagedir = m;
......
...@@ -936,7 +936,6 @@ static int relocate_pagedir(void) ...@@ -936,7 +936,6 @@ static int relocate_pagedir(void)
} }
while ((m = (void *) __get_free_pages(GFP_ATOMIC, pagedir_order))) { while ((m = (void *) __get_free_pages(GFP_ATOMIC, pagedir_order))) {
memset(m, 0, PAGE_SIZE);
if (!does_collide_order(old_pagedir, (unsigned long)m, pagedir_order)) if (!does_collide_order(old_pagedir, (unsigned long)m, pagedir_order))
break; break;
eaten_memory = m; eaten_memory = m;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment