Skip to content

Commit c05d9a7

Browse files
isaevilakukanov
andauthored
Apply suggestions from code review
Co-authored-by: Alexey Kukanov <[email protected]>
1 parent 6a951bd commit c05d9a7

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

Diff for: include/oneapi/tbb/task_arena.h

+1-2
Original file line numberDiff line numberDiff line change
@@ -177,8 +177,7 @@ class task_arena_base {
177177

178178
#if __TBB_PREVIEW_PARALLEL_PHASE
179179
leave_policy get_leave_policy() const {
180-
bool fast_policy_set = (my_version_and_traits & fast_leave_policy_flag) == fast_leave_policy_flag;
181-
return fast_policy_set ? leave_policy::fast : leave_policy::automatic;
180+
return (my_version_and_traits & fast_leave_policy_flag) ? leave_policy::fast : leave_policy::automatic;
182181
}
183182

184183
int leave_policy_to_traits(leave_policy lp) const {

0 commit comments

Comments
 (0)