From: Manik Raina <manik@cisco.com>
To: linux-kernel@vger.kernel.org
Subject: [PATCH] { 2.5 } : removing local variable from init/main.c
Date: Mon, 08 Jul 2002 17:13:00 +0530 [thread overview]
Message-ID: <3D297AC4.E6CF2AA5@cisco.com> (raw)
[-- Attachment #1: Type: text/plain, Size: 53 bytes --]
Removing a variable from stack which is not needed.
[-- Attachment #2: mempages --]
[-- Type: text/plain, Size: 879 bytes --]
diff -u -U 6 -r linux-2.5.24/init/main.c nice/init/main.c
--- linux-2.5.24/init/main.c Fri Jun 21 04:23:46 2002
+++ nice/init/main.c Fri Jul 5 15:16:56 2002
@@ -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)
reply other threads:[~2002-07-08 11:40 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=3D297AC4.E6CF2AA5@cisco.com \
--to=manik@cisco.com \
--cc=linux-kernel@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.