Remove 'tctx->name' from a logical statement since it is a pointer and always

is converted to a true value.  Detected by Clang's improved -Wbool-conversion

llvm-svn: 202223
This commit is contained in:
Richard Trieu 2014-02-26 03:12:51 +00:00
parent ea08c7090b
commit a170f08109
1 changed files with 1 additions and 1 deletions

View File

@ -48,7 +48,7 @@ static uptr get_uid(u32 tid) {
static bool HasName(ThreadContextBase *tctx, void *arg) {
char *name = (char*)arg;
return (tctx->name && 0 == internal_strcmp(tctx->name, name));
return (0 == internal_strcmp(tctx->name, name));
}
static bool HasUid(ThreadContextBase *tctx, void *arg) {