From 7f241f959b35197670e312031e4842c271ff3f2a Mon Sep 17 00:00:00 2001 From: Eugene Syromiatnikov Date: Fri, 4 Aug 2017 08:45:06 +0200 Subject: [PATCH] unwind.c: cleanup * unwind.c (rebuild_cache_if_invalid): Simplify return statement. --- unwind.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) 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 -- 2.40.0