diff options
author | Thordur I. Bjornsson <thib@cvs.openbsd.org> | 2011-04-05 14:14:08 +0000 |
---|---|---|
committer | Thordur I. Bjornsson <thib@cvs.openbsd.org> | 2011-04-05 14:14:08 +0000 |
commit | 09931756bf164ec239559a8c39bd52706b27241e (patch) | |
tree | 21563af8dce4f09f9b4664b7ce6a5d8a9ef5e8fc /sys/nnpfs | |
parent | 7b465dd5593ff7b3f25c30ebff91f4a2c899fbb8 (diff) |
Every single vop_default is set to eopnotsupp, so retire it
and return EOPNOTSUPP directly from the VOP_* functions.
Filesystems should, at some point fill in every function
in the vop_default struct so we can get rid of the 'if'
statements in VOP_*.
Diffstat (limited to 'sys/nnpfs')
-rw-r--r-- | sys/nnpfs/nnpfs_vfsops-openbsd.c | 1 | ||||
-rw-r--r-- | sys/nnpfs/nnpfs_vnodeops-bsd.c | 1 |
2 files changed, 0 insertions, 2 deletions
diff --git a/sys/nnpfs/nnpfs_vfsops-openbsd.c b/sys/nnpfs/nnpfs_vfsops-openbsd.c index 24100c7c2a5..f6b46ea6fec 100644 --- a/sys/nnpfs/nnpfs_vfsops-openbsd.c +++ b/sys/nnpfs/nnpfs_vfsops-openbsd.c @@ -46,7 +46,6 @@ RCSID("$arla: nnpfs_vfsops-openbsd.c,v 1.16 2003/06/02 18:26:50 lha Exp $"); struct vops nnpfs_deadvops = { - .vop_default = (vop_t *)nnpfs_eopnotsupp, .vop_lookup = (vop_t *)nnpfs_dead_lookup, .vop_reclaim = (vop_t *)nnpfs_returnzero, .vop_lock = vop_generic_lock, diff --git a/sys/nnpfs/nnpfs_vnodeops-bsd.c b/sys/nnpfs/nnpfs_vnodeops-bsd.c index 0fa50213ad2..7a2ec58f7ba 100644 --- a/sys/nnpfs/nnpfs_vnodeops-bsd.c +++ b/sys/nnpfs/nnpfs_vnodeops-bsd.c @@ -1394,7 +1394,6 @@ nnpfs_pushdirty(struct vnode *vp, struct ucred *cred, d_thread_t *p) struct vops nnpfs_vops = { - .vop_default = (vop_t *)nnpfs_eopnotsupp, #ifdef HAVE_VOP_LOOKUP .vop_lookup = (vop_t *)nnpfs_lookup, #endif |