mirror of
https://git.haproxy.org/git/haproxy.git/
synced 2025-11-28 22:31:06 +01:00
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:
parent
0f0393fc0d
commit
9b48c629f2
@ -431,7 +431,7 @@ void process_runnable_tasks()
|
||||
* immediately, else we defer it into wait queue
|
||||
*/
|
||||
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->call_date = 0;
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user