testsuite: ztress: Remove idle thread NULL check
This commit removes the NULL check on the idle thread array (`idle_tid`) because it is statically declared and will never be NULL. This fixes the "comparison will always evaluate as ‘false’" warning generated by the GCC 12. Signed-off-by: Stephanos Ioannidis <root@stephanos.io>
This commit is contained in:
parent
0779a932f4
commit
a2e2569684
1 changed files with 0 additions and 4 deletions
|
@ -290,10 +290,6 @@ static void ztress_init(struct ztress_context_data *thread_data)
|
|||
k_thread_foreach(thread_cb, NULL);
|
||||
k_msleep(10);
|
||||
|
||||
if (idle_tid == NULL) {
|
||||
printk("Failed to identify idle thread. CPU load will not be tracked\n");
|
||||
}
|
||||
|
||||
k_timer_start(&ctrl_timer, K_MSEC(100), K_MSEC(100));
|
||||
k_timer_user_data_set(&progress_timer, thread_data);
|
||||
k_timer_start(&progress_timer,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue