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:
Stephanos Ioannidis 2022-07-29 19:49:40 +09:00 committed by Anas Nashif
commit a2e2569684

View file

@ -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,