From f81049e0e89c85b1ba1b19f1b1de6e6a4a88ecb5 Mon Sep 17 00:00:00 2001 From: Daniel Arndt Date: Tue, 19 Feb 2019 19:21:50 +0100 Subject: [PATCH] Remove redundant switch in MatrixFree::TaskInfo --- source/matrix_free/task_info.cc | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/source/matrix_free/task_info.cc b/source/matrix_free/task_info.cc index 1fd323d2cf..d60db786c8 100644 --- a/source/matrix_free/task_info.cc +++ b/source/matrix_free/task_info.cc @@ -363,10 +363,7 @@ namespace internal worker[j]->set_ref_count(2); blocked_worker[j - 1]->dummy = new (worker[j]->allocate_child()) tbb::empty_task; - if (j > 1) - tbb::task::spawn(*blocked_worker[j - 1]); - else - tbb::task::spawn(*blocked_worker[j - 1]); + tbb::task::spawn(*blocked_worker[j - 1]); } else { -- 2.39.5