From: Mariusz Kozlowski Date: Fri, 19 Oct 2007 06:41:09 +0000 (-0700) Subject: kernel/fork.c: remove unneeded variable initialization in copy_process() X-Git-Tag: v2.6.24-rc1~144 X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a24efe62dd165be7d03431cf936ae17d345fed69;p=linux-2.6 kernel/fork.c: remove unneeded variable initialization in copy_process() This initialization of is not needed so just remove it. Signed-off-by: Mariusz Kozlowski Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- diff --git a/kernel/fork.c b/kernel/fork.c index 9d40367dd5..43958d41e6 100644 --- a/kernel/fork.c +++ b/kernel/fork.c @@ -978,7 +978,7 @@ static struct task_struct *copy_process(unsigned long clone_flags, struct pid *pid) { int retval; - struct task_struct *p = NULL; + struct task_struct *p; int cgroup_callbacks_done = 0; if ((clone_flags & (CLONE_NEWNS|CLONE_FS)) == (CLONE_NEWNS|CLONE_FS))