CLEANUP: task: remove impossible test

In process_runnable_task(), after the task's process() function returns,
we used to check if the return is not NULL and is not a tasklet, to update
profiling measurements. This is useless since only tasks can return non-null
here. Let's remove this useless test.
This commit is contained in:
Willy Tarreau 2019-09-24 07:02:40 +02:00
parent 0f0393fc0d
commit 9b48c629f2

View File

@ -431,7 +431,7 @@ void process_runnable_tasks()
* immediately, else we defer it into wait queue * immediately, else we defer it into wait queue
*/ */
if (t != NULL) { if (t != NULL) {
if (unlikely(!TASK_IS_TASKLET(t) && t->call_date)) { if (unlikely(t->call_date)) {
t->cpu_time += now_mono_time() - t->call_date; t->cpu_time += now_mono_time() - t->call_date;
t->call_date = 0; t->call_date = 0;
} }