diff options
| author | Alfred Perlstein <alfred@FreeBSD.org> | 2002-01-14 02:18:59 +0000 |
|---|---|---|
| committer | Alfred Perlstein <alfred@FreeBSD.org> | 2002-01-14 02:18:59 +0000 |
| commit | 3fc6a31403b40b22a19697e407fd372bf69978c9 (patch) | |
| tree | ebad090158d040cd6e2f454778299a1f359e0783 | |
| parent | 117f61374cac9ab861ceebb51d0588bfe2a176d2 (diff) | |
Notes
| -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 9fea7a24eef1..a59e61c4fbff 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); } |
