diff options
Diffstat (limited to 'sys/fs/fifofs/fifo_vnops.c')
-rw-r--r-- | sys/fs/fifofs/fifo_vnops.c | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/sys/fs/fifofs/fifo_vnops.c b/sys/fs/fifofs/fifo_vnops.c index 9fea7a2..a59e61c 100644 --- a/sys/fs/fifofs/fifo_vnops.c +++ b/sys/fs/fifofs/fifo_vnops.c @@ -349,8 +349,6 @@ fifo_ioctl(ap) if (ap->a_command == FIONBIO) return (0); - mtx_init(&filetmp.f_mtx, "struct file", MTX_DEF); - filetmp.f_count = 1; if (ap->a_fflag & FREAD) { /* filetmp is local, hence not need be locked. */ filetmp.f_data = (caddr_t)ap->a_vp->v_fifoinfo->fi_readsock; @@ -366,7 +364,6 @@ fifo_ioctl(ap) goto err; } err: - mtx_destroy(&filetmp.f_mtx); return (error); } @@ -466,8 +463,6 @@ fifo_poll(ap) struct file filetmp; int revents = 0; - mtx_init(&filetmp.f_mtx, "struct file", MTX_DEF); - filetmp.f_count = 1; if (ap->a_events & (POLLIN | POLLPRI | POLLRDNORM | POLLRDBAND)) { filetmp.f_data = (caddr_t)ap->a_vp->v_fifoinfo->fi_readsock; if (filetmp.f_data) @@ -480,7 +475,6 @@ fifo_poll(ap) revents |= soo_poll(&filetmp, ap->a_events, ap->a_cred, ap->a_td); } - mtx_destroy(&filetmp.f_mtx); return (revents); } |