Skip to content

Commit 33cbd84

Browse files
committed
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>
1 parent c8933d0 commit 33cbd84

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

subsys/testsuite/ztest/src/ztress.c

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -290,10 +290,6 @@ static void ztress_init(struct ztress_context_data *thread_data)
290290
k_thread_foreach(thread_cb, NULL);
291291
k_msleep(10);
292292

293-
if (idle_tid == NULL) {
294-
printk("Failed to identify idle thread. CPU load will not be tracked\n");
295-
}
296-
297293
k_timer_start(&ctrl_timer, K_MSEC(100), K_MSEC(100));
298294
k_timer_user_data_set(&progress_timer, thread_data);
299295
k_timer_start(&progress_timer,

0 commit comments

Comments
 (0)