From 588574c000a06516411141aca359fd04b9fbcee6 Mon Sep 17 00:00:00 2001 From: Marc Herbert Date: Mon, 22 Mar 2021 19:24:18 +0000 Subject: [PATCH] ll_schedule.c: fix "uninitialized task_take" warning in CONFIG_TRACEV Looks like no one ever uses tr_dbg()? Signed-off-by: Marc Herbert --- src/schedule/ll_schedule.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/schedule/ll_schedule.c b/src/schedule/ll_schedule.c index 5b0495582..8a2445c6d 100644 --- a/src/schedule/ll_schedule.c +++ b/src/schedule/ll_schedule.c @@ -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); }