diff --git a/sys/kern/vfs_conf.c b/sys/kern/vfs_conf.c index c2fa605a9f5..57d994c5cdf 100644 --- a/sys/kern/vfs_conf.c +++ b/sys/kern/vfs_conf.c @@ -173,7 +173,7 @@ vfs_mountroot_try(char *mountfrom) error = EINVAL; if (mountfrom == NULL) - goto done; + return(error); /* don't complain */ printf("Mounting root from %s\n", mountfrom); diff --git a/sys/kern/vfs_mount.c b/sys/kern/vfs_mount.c index c2fa605a9f5..57d994c5cdf 100644 --- a/sys/kern/vfs_mount.c +++ b/sys/kern/vfs_mount.c @@ -173,7 +173,7 @@ vfs_mountroot_try(char *mountfrom) error = EINVAL; if (mountfrom == NULL) - goto done; + return(error); /* don't complain */ printf("Mounting root from %s\n", mountfrom);