diff options
author | davidxu <davidxu@FreeBSD.org> | 2010-09-13 07:18:00 +0000 |
---|---|---|
committer | davidxu <davidxu@FreeBSD.org> | 2010-09-13 07:18:00 +0000 |
commit | 71456632de0343b336f7193703c660b30982fd56 (patch) | |
tree | c0214f663618c872c3d91fe8d2c368dc750da115 /lib/libthr/thread/thr_affinity.c | |
parent | c517eaecea2a739c5f36639f44972b3c85b8e918 (diff) | |
download | FreeBSD-src-71456632de0343b336f7193703c660b30982fd56.zip FreeBSD-src-71456632de0343b336f7193703c660b30982fd56.tar.gz |
PS_DEAD state needs not be checked because _thr_find_thread() has already
checked it.
Diffstat (limited to 'lib/libthr/thread/thr_affinity.c')
-rw-r--r-- | lib/libthr/thread/thr_affinity.c | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/lib/libthr/thread/thr_affinity.c b/lib/libthr/thread/thr_affinity.c index ae43fcb..3f93224 100644 --- a/lib/libthr/thread/thr_affinity.c +++ b/lib/libthr/thread/thr_affinity.c @@ -51,10 +51,6 @@ _pthread_setaffinity_np(pthread_t td, size_t cpusetsize, const cpuset_t *cpusetp if (error == -1) error = errno; } else if ((error = _thr_find_thread(curthread, td, 0)) == 0) { - if (td->state == PS_DEAD) { - THR_THREAD_UNLOCK(curthread, td); - return (EINVAL); - } tid = TID(td); error = cpuset_setaffinity(CPU_LEVEL_WHICH, CPU_WHICH_TID, tid, cpusetsize, cpusetp); |