vfs_mountroot_shuffle() never returns non-zero.
This commit is contained in:
parent
536b3538e0
commit
6c5c24c98c
@ -262,7 +262,7 @@ vfs_mountroot_devfs(struct thread *td, struct mount **mpp)
|
|||||||
return (error);
|
return (error);
|
||||||
}
|
}
|
||||||
|
|
||||||
static int
|
static void
|
||||||
vfs_mountroot_shuffle(struct thread *td, struct mount *mpdevfs)
|
vfs_mountroot_shuffle(struct thread *td, struct mount *mpdevfs)
|
||||||
{
|
{
|
||||||
struct nameidata nd;
|
struct nameidata nd;
|
||||||
@ -373,8 +373,6 @@ vfs_mountroot_shuffle(struct thread *td, struct mount *mpdevfs)
|
|||||||
printf("mountroot: unable to unlink /dev/dev "
|
printf("mountroot: unable to unlink /dev/dev "
|
||||||
"(error %d)\n", error);
|
"(error %d)\n", error);
|
||||||
}
|
}
|
||||||
|
|
||||||
return (0);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
@ -972,12 +970,10 @@ vfs_mountroot(void)
|
|||||||
while (!error) {
|
while (!error) {
|
||||||
error = vfs_mountroot_parse(sb, mp);
|
error = vfs_mountroot_parse(sb, mp);
|
||||||
if (!error) {
|
if (!error) {
|
||||||
error = vfs_mountroot_shuffle(td, mp);
|
vfs_mountroot_shuffle(td, mp);
|
||||||
if (!error) {
|
sbuf_clear(sb);
|
||||||
sbuf_clear(sb);
|
error = vfs_mountroot_readconf(td, sb);
|
||||||
error = vfs_mountroot_readconf(td, sb);
|
sbuf_finish(sb);
|
||||||
sbuf_finish(sb);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user