kill a bit of dead code in nfs
authorAggelos Economopoulos <aoiko@cc.ece.ntua.gr>
Thu, 7 May 2009 19:12:48 +0000 (22:12 +0300)
committerAggelos Economopoulos <aoiko@cc.ece.ntua.gr>
Thu, 7 May 2009 19:12:48 +0000 (22:12 +0300)
sys/vfs/nfs/nfs_vnops.c

index 656190b..2c59ed4 100644 (file)
@@ -1133,14 +1133,6 @@ nfs_read(struct vop_read_args *ap)
        struct vnode *vp = ap->a_vp;
 
        return (nfs_bioread(vp, ap->a_uio, ap->a_ioflag));
-       switch (vp->v_type) {
-       case VREG:
-               return (nfs_bioread(vp, ap->a_uio, ap->a_ioflag));
-       case VDIR:
-               return (EISDIR);
-       default:
-               return EOPNOTSUPP;
-       }
 }
 
 /*