From b749a04db32fc52b86810fee215f2097ee02dcf1 Mon Sep 17 00:00:00 2001 From: David Xu Date: Mon, 13 Sep 2010 07:18:00 +0000 Subject: PS_DEAD state needs not be checked because _thr_find_thread() has already checked it. --- lib/libthr/thread/thr_affinity.c | 4 ---- 1 file changed, 4 deletions(-) diff --git a/lib/libthr/thread/thr_affinity.c b/lib/libthr/thread/thr_affinity.c index ae43fcb23907e..3f9322453f960 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); -- cgit v1.2.3