summaryrefslogtreecommitdiffstats
path: root/sbin/newfs_msdos
diff options
context:
space:
mode:
authorrnordier <rnordier@FreeBSD.org>2000-08-15 18:04:16 +0000
committerrnordier <rnordier@FreeBSD.org>2000-08-15 18:04:16 +0000
commitdad09ef439a4fe770e915fd51421bfcb2635d8fd (patch)
tree6513396f1e988b78532229ff62d0960e876a1cad /sbin/newfs_msdos
parentb4ef1cd578c41f9d2bf091eff7c199390d3c2923 (diff)
downloadFreeBSD-src-dad09ef439a4fe770e915fd51421bfcb2635d8fd.zip
FreeBSD-src-dad09ef439a4fe770e915fd51421bfcb2635d8fd.tar.gz
Remove redundant code left over on removal of /dev/rXXX handling
in r1.12.
Diffstat (limited to 'sbin/newfs_msdos')
-rw-r--r--sbin/newfs_msdos/newfs_msdos.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/sbin/newfs_msdos/newfs_msdos.c b/sbin/newfs_msdos/newfs_msdos.c
index aeae025..d6648fc 100644
--- a/sbin/newfs_msdos/newfs_msdos.c
+++ b/sbin/newfs_msdos/newfs_msdos.c
@@ -337,8 +337,6 @@ main(int argc, char *argv[])
fname = *argv++;
if (!strchr(fname, '/')) {
snprintf(buf, sizeof(buf), "%s%s", _PATH_DEV, fname);
- if (stat(buf, &sb))
- snprintf(buf, sizeof(buf), "%s%s", _PATH_DEV, fname);
if (!(fname = strdup(buf)))
err(1, NULL);
}
OpenPOWER on IntegriCloud