diff --git a/sys/fs/msdosfs/msdosfs_vnops.c b/sys/fs/msdosfs/msdosfs_vnops.c index 29a59ece0dc7..77d2760e44d1 100644 --- a/sys/fs/msdosfs/msdosfs_vnops.c +++ b/sys/fs/msdosfs/msdosfs_vnops.c @@ -202,20 +202,7 @@ msdosfs_mknod(ap) struct vattr *a_vap; } */ *ap; { - - 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: - return (EINVAL); - } - /* NOTREACHED */ + return (EINVAL); } static int