Remove proc locking, it's not needed after r210132.

This commit is contained in:
Edward Tomasz Napierala 2010-07-17 15:52:11 +00:00
parent b29d02f258
commit 49e134dfa6
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=210197

View file

@ -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;