[PATCH] init/do_mounts_initrd.c: fix sparse warning

Signed-off-by: Alexey Dobriyan <adobriyan@mail.ru>
Signed-off-by: Domen Puncer <domen@coderock.org>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>

authored by Domen Puncer and committed by Linus Torvalds 29a1d2d1 96ec3efd

+2 -2
+2 -2
init/do_mounts_initrd.c
··· 41 static void __init handle_initrd(void) 42 { 43 int error; 44 - int i, pid; 45 46 real_root_dev = new_encode_dev(ROOT_DEV); 47 create_dev("/dev/root.old", Root_RAM0, NULL); ··· 58 59 pid = kernel_thread(do_linuxrc, "/linuxrc", SIGCHLD); 60 if (pid > 0) { 61 - while (pid != sys_wait4(-1, &i, 0, NULL)) 62 yield(); 63 } 64
··· 41 static void __init handle_initrd(void) 42 { 43 int error; 44 + int pid; 45 46 real_root_dev = new_encode_dev(ROOT_DEV); 47 create_dev("/dev/root.old", Root_RAM0, NULL); ··· 58 59 pid = kernel_thread(do_linuxrc, "/linuxrc", SIGCHLD); 60 if (pid > 0) { 61 + while (pid != sys_wait4(-1, NULL, 0, NULL)) 62 yield(); 63 } 64