unwind.c: cleanup

* unwind.c (rebuild_cache_if_invalid): Simplify return statement.
This commit is contained in:
Eugene Syromiatnikov 2017-08-04 08:45:06 +02:00 committed by Dmitry V. Levin
parent 965069d691
commit 7f241f959b

View File

@ -254,10 +254,7 @@ rebuild_cache_if_invalid(struct tcb *tcp, const char *caller)
if (!tcp->mmap_cache)
build_mmap_cache(tcp);
if (!tcp->mmap_cache || !tcp->mmap_cache_size)
return false;
else
return true;
return tcp->mmap_cache && tcp->mmap_cache_size;
}
void