commit | 8e631624e9da603e023abe049820eaa830d02815 | [log] [tgz] |
---|---|---|
author | Treehugger Robot <android-test-infra-autosubmit@system.gserviceaccount.com> | Thu Feb 01 19:51:56 2024 +0000 |
committer | Gerrit Code Review <noreply-gerritcodereview@google.com> | Thu Feb 01 19:51:56 2024 +0000 |
tree | 9b96316e47e2c9be31f8f4c59921d6eccd990842 | |
parent | 5965d63c95258b36257490520f1b3bab5847df6e [diff] | |
parent | d541611c772ccbbd016ee95c704a292c05983821 [diff] |
Merge "NFC: remove unnecessary branching" into main
diff --git a/libc/bionic/heap_tagging.cpp b/libc/bionic/heap_tagging.cpp index 230899a..48ec955 100644 --- a/libc/bionic/heap_tagging.cpp +++ b/libc/bionic/heap_tagging.cpp
@@ -90,10 +90,7 @@ } tagged_addr_ctrl = (tagged_addr_ctrl & ~PR_MTE_TCF_MASK) | tcf; - if (prctl(PR_SET_TAGGED_ADDR_CTRL, tagged_addr_ctrl, 0, 0, 0) < 0) { - return false; - } - return true; + return prctl(PR_SET_TAGGED_ADDR_CTRL, tagged_addr_ctrl, 0, 0, 0) >= 0; }, &tcf); }