aboutsummaryrefslogtreecommitdiff
path: root/sbin/newfs_msdos/newfs_msdos.c
diff options
context:
space:
mode:
authorRobert Nordier <rnordier@FreeBSD.org>2000-08-15 18:04:16 +0000
committerRobert Nordier <rnordier@FreeBSD.org>2000-08-15 18:04:16 +0000
commit5306a1eccbca6ecff2bf04a65393d5c1cc0e5d5c (patch)
tree33ca36c28572247ea374d1af1c5b3e4e1a2493b5 /sbin/newfs_msdos/newfs_msdos.c
parent3f6c47f3ecdcbc1c18011b493764994b63a5f0ed (diff)
downloadsrc-5306a1eccbca6ecff2bf04a65393d5c1cc0e5d5c.tar.gz
src-5306a1eccbca6ecff2bf04a65393d5c1cc0e5d5c.zip
Remove redundant code left over on removal of /dev/rXXX handling
in r1.12.
Notes
Notes: svn path=/head/; revision=64685
Diffstat (limited to 'sbin/newfs_msdos/newfs_msdos.c')
-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 aeae025b0763..d6648fcad44e 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);
}