diff options
author | msmith <msmith@FreeBSD.org> | 1999-11-21 08:05:50 +0000 |
---|---|---|
committer | msmith <msmith@FreeBSD.org> | 1999-11-21 08:05:50 +0000 |
commit | ddba753180d74791897aef0e5ae7267ab97e9009 (patch) | |
tree | 4f9d028b94e510b71b0c73e857e0785e9fa372a8 /sys/kern/vfs_mount.c | |
parent | 216e35006e551f69144762215a7ef9762298fe98 (diff) | |
download | FreeBSD-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.c | 2 |
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); |