Merge "NFC: remove unnecessary branching" into main
This commit is contained in:
commit
8e631624e9
1 changed files with 1 additions and 4 deletions
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue