aboutsummaryrefslogtreecommitdiff
path: root/sys/compat/svr4/svr4_filio.c
diff options
context:
space:
mode:
authorEdward Tomasz Napierala <trasz@FreeBSD.org>2010-07-17 15:52:11 +0000
committerEdward Tomasz Napierala <trasz@FreeBSD.org>2010-07-17 15:52:11 +0000
commit49e134dfa6a6ff8ed26cebc0f5f38516347eb65a (patch)
tree2753c6405421f777e5cdc13bb6613bcfffa8b6f4 /sys/compat/svr4/svr4_filio.c
parentb29d02f2586fac33084eaf85b8f3b1ad6c782a1b (diff)
downloadsrc-49e134dfa6a6ff8ed26cebc0f5f38516347eb65a.tar.gz
src-49e134dfa6a6ff8ed26cebc0f5f38516347eb65a.zip
Remove proc locking, it's not needed after r210132.
Notes
Notes: svn path=/head/; revision=210197
Diffstat (limited to 'sys/compat/svr4/svr4_filio.c')
-rw-r--r--sys/compat/svr4/svr4_filio.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/sys/compat/svr4/svr4_filio.c b/sys/compat/svr4/svr4_filio.c
index 58c641768fa9..ca85653823ab 100644
--- a/sys/compat/svr4/svr4_filio.c
+++ b/sys/compat/svr4/svr4_filio.c
@@ -64,12 +64,8 @@ svr4_sys_poll(td, uap)
int idx = 0, cerr;
u_long siz;
- PROC_LOCK(td->td_proc);
- if (uap->nfds > maxfilesperproc && uap->nfds > FD_SETSIZE) {
- PROC_UNLOCK(td->td_proc);
+ if (uap->nfds > maxfilesperproc && uap->nfds > FD_SETSIZE)
return (EINVAL);
- }
- PROC_UNLOCK(td->td_proc);
pa.fds = uap->fds;
pa.nfds = uap->nfds;