From b734adba63be8189571361bd16a30ec3f586bc8d Mon Sep 17 00:00:00 2001 From: Ingo Weinhold Date: Mon, 3 Jan 2011 00:09:27 +0000 Subject: [PATCH] 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 --- src/system/kernel/thread.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/system/kernel/thread.cpp b/src/system/kernel/thread.cpp index f982b494fb..ac2a7d831b 100644 --- a/src/system/kernel/thread.cpp +++ b/src/system/kernel/thread.cpp @@ -2524,7 +2524,7 @@ find_thread(const char *name) while ((thread = (struct thread*)hash_next(sThreadHash, &iterator)) != NULL) { // Search through hash - if (thread->name != NULL && !strcmp(thread->name, name)) { + if (!strcmp(thread->name, name)) { thread_id id = thread->id; RELEASE_THREAD_LOCK();