diff --git a/sbin/mount/mount.c b/sbin/mount/mount.c index cf05d3fa4a23..1be00ec7d26c 100644 --- a/sbin/mount/mount.c +++ b/sbin/mount/mount.c @@ -332,12 +332,8 @@ mountfs(vfstype, spec, name, flags, options, mntopts) (void)snprintf(execname, sizeof(execname), "%s/mount_%s", *edir, vfstype); execv(execname, (char * const *)argv); - if (errno != ENOENT) - warn("exec %s for %s", execname, name); - } while (*++edir != NULL); - - if (errno == ENOENT) warn("exec %s for %s", execname, name); + } while (*++edir != NULL); exit(1); /* NOTREACHED */ default: /* Parent. */ diff --git a/sbin/mount_ifs/mount.c b/sbin/mount_ifs/mount.c index cf05d3fa4a23..1be00ec7d26c 100644 --- a/sbin/mount_ifs/mount.c +++ b/sbin/mount_ifs/mount.c @@ -332,12 +332,8 @@ mountfs(vfstype, spec, name, flags, options, mntopts) (void)snprintf(execname, sizeof(execname), "%s/mount_%s", *edir, vfstype); execv(execname, (char * const *)argv); - if (errno != ENOENT) - warn("exec %s for %s", execname, name); - } while (*++edir != NULL); - - if (errno == ENOENT) warn("exec %s for %s", execname, name); + } while (*++edir != NULL); exit(1); /* NOTREACHED */ default: /* Parent. */