Skip to contentSkip to conversation

swsusp: kill unused variable

PATCH Pavel Machek 1 participant 1 message Dec 25, 2004

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

Hi!

Variable used only for writing is bad idea, please apply,
Pavel

kernel/power/swsusp.c +0 -2
@@ -786,7 +768,6 @@
 
 int suspend_prepare_image(void)
 {
-	unsigned int nr_needed_pages;
 	int error;
 
 	pr_debug("swsusp: critical section: \n");
@@ -799,7 +780,6 @@
 	drain_local_pages();
 	count_data_pages();
 	printk("swsusp: Need to copy %u pages\n",nr_copy_pages);
-	nr_needed_pages = nr_copy_pages + PAGES_FOR_IO;
 
 	error = swsusp_alloc();
 	if (error)
Signature · 2 lines
People were complaining that M$ turns users into beta-testers...
...jr ghea gurz vagb qrirybcref, naq gurl frrz gb yvxr vg gung jnl!