From b3be35ee5e0e4e1b73a691bd36ee71907fb3e79e Mon Sep 17 00:00:00 2001 From: Mike Smith Date: Sun, 21 Nov 1999 08:05:50 +0000 Subject: [PATCH] If vfs_mountroot_try() isn't given a path to try mounting, return a silent error rather than complaining about it verbosely. No path is not really a failure, but the diagnostic was confusing and unuseful. --- sys/kern/vfs_conf.c | 2 +- sys/kern/vfs_mount.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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);