Explorar o código

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 <m.kozlowski@tuxland.pl>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Mariusz Kozlowski %!s(int64=17) %!d(string=hai) anos
pai
achega
a24efe62dd
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      kernel/fork.c

+ 1 - 1
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))