summaryrefslogtreecommitdiffstats
path: root/sys/kern/vfs_mount.c
diff options
context:
space:
mode:
authormsmith <msmith@FreeBSD.org>1999-11-21 08:05:50 +0000
committermsmith <msmith@FreeBSD.org>1999-11-21 08:05:50 +0000
commitddba753180d74791897aef0e5ae7267ab97e9009 (patch)
tree4f9d028b94e510b71b0c73e857e0785e9fa372a8 /sys/kern/vfs_mount.c
parent216e35006e551f69144762215a7ef9762298fe98 (diff)
downloadFreeBSD-src-ddba753180d74791897aef0e5ae7267ab97e9009.zip
FreeBSD-src-ddba753180d74791897aef0e5ae7267ab97e9009.tar.gz
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.
Diffstat (limited to 'sys/kern/vfs_mount.c')
-rw-r--r--sys/kern/vfs_mount.c2
1 files changed, 1 insertions, 1 deletions
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);
OpenPOWER on IntegriCloud