瀏覽代碼

[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>
Domen Puncer 20 年之前
父節點
當前提交
29a1d2d1bc
共有 1 個文件被更改,包括 2 次插入2 次删除
  1. 2 2
      init/do_mounts_initrd.c

+ 2 - 2
init/do_mounts_initrd.c

@@ -41,7 +41,7 @@ static int __init do_linuxrc(void * shell)
 static void __init handle_initrd(void)
 static void __init handle_initrd(void)
 {
 {
 	int error;
 	int error;
-	int i, pid;
+	int pid;
 
 
 	real_root_dev = new_encode_dev(ROOT_DEV);
 	real_root_dev = new_encode_dev(ROOT_DEV);
 	create_dev("/dev/root.old", Root_RAM0, NULL);
 	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);
 	pid = kernel_thread(do_linuxrc, "/linuxrc", SIGCHLD);
 	if (pid > 0) {
 	if (pid > 0) {
-		while (pid != sys_wait4(-1, &i, 0, NULL))
+		while (pid != sys_wait4(-1, NULL, 0, NULL))
 			yield();
 			yield();
 	}
 	}