commit | 47ec15c928f7b993e7da51f89e0e8b78b603d023 | [log] [tgz] |
---|---|---|
author | Hans Boehm <hboehm@google.com> | Mon Sep 30 18:21:39 2024 +0000 |
committer | Gerrit Code Review <noreply-gerritcodereview@google.com> | Mon Sep 30 18:21:39 2024 +0000 |
tree | 5ac76af150eb27fe54096e8bd3ea4adfd79172a1 | |
parent | dcb13446f2814f1e77fb467eac8218f128f3f801 [diff] | |
parent | 1ec5290872b1bd120e44ebffddd47b2a62bc90d1 [diff] |
Merge "Remove unnecessary getpriority() system call" into main
diff --git a/libutils/Threads.cpp b/libutils/Threads.cpp index d8d75ac..111d46a 100644 --- a/libutils/Threads.cpp +++ b/libutils/Threads.cpp
@@ -313,11 +313,6 @@ 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;