From: Eugene Syromiatnikov Date: Fri, 4 Aug 2017 06:45:06 +0000 (+0200) Subject: unwind.c: cleanup X-Git-Tag: v4.21~301 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=7f241f959b35197670e312031e4842c271ff3f2a;p=strace unwind.c: cleanup * unwind.c (rebuild_cache_if_invalid): Simplify return statement. --- diff --git a/unwind.c b/unwind.c index 38ace6e4..c097e875 100644 --- a/unwind.c +++ b/unwind.c @@ -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