Skip to contentSkip to conversation

{ 2.5 } : removing local variable from init/main.c

PATCH New Manik Raina 1 participant 1 message Jul 8, 2002

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 { 2.5 } : removing local variable from init/main.c

Removing a variable from stack which is not needed.

init/main.c +2 -6
diff -u -U 6 -r linux-2.5.24/init/main.c nice/init/main.c
@@ -330,13 +330,12 @@
  *	Activate the first processor.
  */
 
 asmlinkage void __init start_kernel(void)
 {
 	char * command_line;
-	unsigned long mempages;
 	extern char saved_command_line[];
 /*
  * Interrupts are still disabled. Do necessary setups, then
  * enable them
  */
 	lock_kernel();
@@ -381,19 +380,16 @@
 		initrd_start = 0;
 	}
 #endif
 	mem_init();
 	kmem_cache_sizes_init();
 	pgtable_cache_init();
-
-	mempages = num_physpages;
-
-	fork_init(mempages);
+	fork_init(num_physpages);
 	proc_caches_init();
 	buffer_init();
-	vfs_caches_init(mempages);
+	vfs_caches_init(num_physpages);
 	radix_tree_init();
 	signals_init();
 #ifdef CONFIG_PROC_FS
 	proc_root_init();
 #endif
 #if defined(CONFIG_SYSVIPC)