ll_schedule.c: fix "uninitialized task_take" warning in CONFIG_TRACEV

Looks like no one ever uses tr_dbg()?

Signed-off-by: Marc Herbert <marc.herbert@intel.com>
This commit is contained in:
Marc Herbert 2021-03-22 19:24:18 +00:00 committed by Liam Girdwood
parent 70b9d30414
commit 588574c000
1 changed files with 6 additions and 4 deletions

View File

@ -159,7 +159,8 @@ static void schedule_ll_clients_reschedule(struct ll_schedule_data *sch)
{
struct list_item *wlist;
struct list_item *tlist;
struct task *task, *task_take;
struct task *task;
struct task *task_take_dbg = NULL;
uint64_t next_tick = UINT64_MAX;
/* rearm only if there is work to do */
@ -171,12 +172,13 @@ static void schedule_ll_clients_reschedule(struct ll_schedule_data *sch)
/* update to use the earlier tick */
if (task->start < next_tick) {
next_tick = task->start;
task_take = task;
task_take_dbg = task;
}
}
tr_dbg(&ll_tr, "schedule_ll_clients_reschedule next_tick %u task_take %p",
(unsigned int)next_tick, task_take);
tr_dbg(&ll_tr,
"schedule_ll_clients_reschedule next_tick %u task_take %p",
(unsigned int)next_tick, task_take_dbg);
domain_set(sch->domain, next_tick);
}