Merge "NFC: remove unnecessary branching" into main

This commit is contained in:
Treehugger Robot 2024-02-01 19:51:56 +00:00 committed by Gerrit Code Review
commit 8e631624e9

View file

@ -90,10 +90,7 @@ static bool set_tcf_on_all_threads(int tcf) {
}
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);
}