Commit fb8fa704 authored by Pavel Machek's avatar Pavel Machek Committed by Linus Torvalds

[PATCH] swsusp: kill unused variable

Variable used only for writing is bad idea.
Signed-off-by: default avatarPavel Machek <pavel@suse.cz>
Signed-off-by: default avatarAndrew Morton <akpm@osdl.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@osdl.org>
parent 01c92009
...@@ -786,7 +786,6 @@ static int swsusp_alloc(void) ...@@ -786,7 +786,6 @@ static int swsusp_alloc(void)
int suspend_prepare_image(void) int suspend_prepare_image(void)
{ {
unsigned int nr_needed_pages;
int error; int error;
pr_debug("swsusp: critical section: \n"); pr_debug("swsusp: critical section: \n");
...@@ -799,7 +798,6 @@ int suspend_prepare_image(void) ...@@ -799,7 +798,6 @@ int suspend_prepare_image(void)
drain_local_pages(); drain_local_pages();
count_data_pages(); count_data_pages();
printk("swsusp: Need to copy %u pages\n",nr_copy_pages); printk("swsusp: Need to copy %u pages\n",nr_copy_pages);
nr_needed_pages = nr_copy_pages + PAGES_FOR_IO;
error = swsusp_alloc(); error = swsusp_alloc();
if (error) if (error)
......
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