summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorkib <kib@FreeBSD.org>2009-06-10 14:02:22 +0000
committerkib <kib@FreeBSD.org>2009-06-10 14:02:22 +0000
commita051f2b40a4877c3751f6b94fc1814b53f846a4d (patch)
tree9f97a563093425f4979ceba0d6a1739fba18ebc7
parente0d7459c716fb9105aa2ae9ebf00c6de6a1f8796 (diff)
downloadFreeBSD-src-a051f2b40a4877c3751f6b94fc1814b53f846a4d.zip
FreeBSD-src-a051f2b40a4877c3751f6b94fc1814b53f846a4d.tar.gz
Remove unused VOP_IOCTL and VOP_KQFILTER implementations for fifofs.
MFC after: 2 weeks
-rw-r--r--sys/fs/fifofs/fifo_vnops.c42
1 files changed, 2 insertions, 40 deletions
diff --git a/sys/fs/fifofs/fifo_vnops.c b/sys/fs/fifofs/fifo_vnops.c
index 66963bc..8d20297 100644
--- a/sys/fs/fifofs/fifo_vnops.c
+++ b/sys/fs/fifofs/fifo_vnops.c
@@ -89,8 +89,6 @@ struct fifoinfo {
static vop_print_t fifo_print;
static vop_open_t fifo_open;
static vop_close_t fifo_close;
-static vop_ioctl_t fifo_ioctl;
-static vop_kqfilter_t fifo_kqfilter;
static vop_pathconf_t fifo_pathconf;
static vop_advlock_t fifo_advlock;
@@ -116,8 +114,8 @@ struct vop_vector fifo_specops = {
.vop_close = fifo_close,
.vop_create = VOP_PANIC,
.vop_getattr = VOP_EBADF,
- .vop_ioctl = fifo_ioctl,
- .vop_kqfilter = fifo_kqfilter,
+ .vop_ioctl = VOP_PANIC,
+ .vop_kqfilter = VOP_PANIC,
.vop_link = VOP_PANIC,
.vop_mkdir = VOP_PANIC,
.vop_mknod = VOP_PANIC,
@@ -300,42 +298,6 @@ fail1:
return (0);
}
-/*
- * Now unused vnode ioctl routine.
- */
-/* ARGSUSED */
-static int
-fifo_ioctl(ap)
- struct vop_ioctl_args /* {
- struct vnode *a_vp;
- u_long a_command;
- caddr_t a_data;
- int a_fflag;
- struct ucred *a_cred;
- struct thread *a_td;
- } */ *ap;
-{
-
- printf("WARNING: fifo_ioctl called unexpectedly\n");
- return (ENOTTY);
-}
-
-/*
- * Now unused vnode kqfilter routine.
- */
-/* ARGSUSED */
-static int
-fifo_kqfilter(ap)
- struct vop_kqfilter_args /* {
- struct vnode *a_vp;
- struct knote *a_kn;
- } */ *ap;
-{
-
- printf("WARNING: fifo_kqfilter called unexpectedly\n");
- return (EINVAL);
-}
-
static void
filt_fifordetach(struct knote *kn)
{
OpenPOWER on IntegriCloud