summaryrefslogtreecommitdiff
path: root/sys/msdosfs
diff options
context:
space:
mode:
authorassar <assar@cvs.openbsd.org>2001-07-26 01:53:10 +0000
committerassar <assar@cvs.openbsd.org>2001-07-26 01:53:10 +0000
commit884823bfdf5ae3686d10cc854ad323da4e92734e (patch)
treeeefdbed5718df7016f5f5027a02fdcca24fd01fd /sys/msdosfs
parentb2776f9322106b861c0b5d2ff1969a12145663f4 (diff)
remove unused support for creating files and directories from
msdosfs_mknod. ok'd by art
Diffstat (limited to 'sys/msdosfs')
-rw-r--r--sys/msdosfs/msdosfs_vnops.c20
1 files changed, 4 insertions, 16 deletions
diff --git a/sys/msdosfs/msdosfs_vnops.c b/sys/msdosfs/msdosfs_vnops.c
index cd2ced85c87..6cd6b17533e 100644
--- a/sys/msdosfs/msdosfs_vnops.c
+++ b/sys/msdosfs/msdosfs_vnops.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: msdosfs_vnops.c,v 1.25 2001/06/27 04:58:45 art Exp $ */
+/* $OpenBSD: msdosfs_vnops.c,v 1.26 2001/07/26 01:53:09 assar Exp $ */
/* $NetBSD: msdosfs_vnops.c,v 1.63 1997/10/17 11:24:19 ws Exp $ */
/*-
@@ -178,21 +178,9 @@ msdosfs_mknod(v)
struct vattr *a_vap;
} */ *ap = v;
- switch (ap->a_vap->va_type) {
- case VDIR:
- return (msdosfs_mkdir((struct vop_mkdir_args *)ap));
- break;
-
- case VREG:
- return (msdosfs_create((struct vop_create_args *)ap));
- break;
-
- default:
- FREE(ap->a_cnp->cn_pnbuf, M_NAMEI);
- vput(ap->a_dvp);
- return (EINVAL);
- }
- /* NOTREACHED */
+ FREE(ap->a_cnp->cn_pnbuf, M_NAMEI);
+ vput(ap->a_dvp);
+ return (EINVAL);
}
int