Skip to content

Commit

Permalink
[PATCH] init/do_mounts_initrd.c: fix sparse warning
Browse files Browse the repository at this point in the history
Signed-off-by: Alexey Dobriyan <[email protected]>
Signed-off-by: Domen Puncer <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
  • Loading branch information
Domen Puncer authored and Linus Torvalds committed Jun 25, 2005
1 parent 96ec3ef commit 29a1d2d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions init/do_mounts_initrd.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand All @@ -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();
}

Expand Down

0 comments on commit 29a1d2d

Please sign in to comment.