find_thread(): thread::name is an array, so the NULL check is useless

(CID 4073).


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@40083 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Ingo Weinhold 2011-01-03 00:09:27 +00:00
parent 66e8557230
commit b734adba63

View File

@ -2524,7 +2524,7 @@ find_thread(const char *name)
while ((thread = (struct thread*)hash_next(sThreadHash, &iterator)) while ((thread = (struct thread*)hash_next(sThreadHash, &iterator))
!= NULL) { != NULL) {
// Search through hash // Search through hash
if (thread->name != NULL && !strcmp(thread->name, name)) { if (!strcmp(thread->name, name)) {
thread_id id = thread->id; thread_id id = thread->id;
RELEASE_THREAD_LOCK(); RELEASE_THREAD_LOCK();