kernel: thread->name is never NULL as it is an array.

Spotted by Clang (-Wtautological-pointer-compare.)
This commit is contained in:
Augustin Cavalier 2018-11-24 21:07:18 -05:00
parent df4074fbed
commit aa0836519a

View File

@ -1708,8 +1708,7 @@ _dump_thread_info(Thread *thread, bool shortInfo)
kprintf(" -");
kprintf("%4" B_PRId32 " %p%5" B_PRId32 " %s\n", thread->priority,
(void *)thread->kernel_stack_base, thread->team->id,
thread->name != NULL ? thread->name : "<NULL>");
(void *)thread->kernel_stack_base, thread->team->id, thread->name);
return;
}