From: Domen Puncer Date: Sat, 25 Jun 2005 21:58:43 +0000 (-0700) Subject: [PATCH] init/do_mounts_initrd.c: fix sparse warning X-Git-Tag: v2.6.13-rc1~68^2~69 X-Git-Url: http://pilppa.com/gitweb/?a=commitdiff_plain;h=29a1d2d1bc5a473eb88489251033b3c5651d2011;p=linux-2.6-omap-h63xx.git [PATCH] init/do_mounts_initrd.c: fix sparse warning Signed-off-by: Alexey Dobriyan Signed-off-by: Domen Puncer Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- diff --git a/init/do_mounts_initrd.c b/init/do_mounts_initrd.c index 07e7d31f2d0..4def882d0b3 100644 --- a/init/do_mounts_initrd.c +++ b/init/do_mounts_initrd.c @@ -41,7 +41,7 @@ static int __init do_linuxrc(void * shell) static void __init handle_initrd(void) { int error; - int i, pid; + int pid; real_root_dev = new_encode_dev(ROOT_DEV); create_dev("/dev/root.old", Root_RAM0, NULL); @@ -58,7 +58,7 @@ static void __init handle_initrd(void) pid = kernel_thread(do_linuxrc, "/linuxrc", SIGCHLD); if (pid > 0) { - while (pid != sys_wait4(-1, &i, 0, NULL)) + while (pid != sys_wait4(-1, NULL, 0, NULL)) yield(); }