diff --git a/libutils/Threads.cpp b/libutils/Threads.cpp index d8d75acf4..111d46af9 100644 --- a/libutils/Threads.cpp +++ b/libutils/Threads.cpp @@ -313,11 +313,6 @@ void androidSetCreateThreadFunc(android_create_thread_fn func) int androidSetThreadPriority(pid_t tid, int pri) { int rc = 0; - int curr_pri = getpriority(PRIO_PROCESS, tid); - - if (curr_pri == pri) { - return rc; - } if (setpriority(PRIO_PROCESS, tid, pri) < 0) { rc = INVALID_OPERATION;