From 5306a1eccbca6ecff2bf04a65393d5c1cc0e5d5c Mon Sep 17 00:00:00 2001 From: Robert Nordier Date: Tue, 15 Aug 2000 18:04:16 +0000 Subject: [PATCH] Remove redundant code left over on removal of /dev/rXXX handling in r1.12. --- sbin/newfs_msdos/newfs_msdos.c | 2 -- 1 file changed, 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); }