From ddba753180d74791897aef0e5ae7267ab97e9009 Mon Sep 17 00:00:00 2001 From: msmith Date: Sun, 21 Nov 1999 08:05:50 +0000 Subject: 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_mount.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'sys/kern/vfs_mount.c') diff --git a/sys/kern/vfs_mount.c b/sys/kern/vfs_mount.c index c2fa605..57d994c 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); -- cgit v1.1