]> granicus.if.org Git - strace/commitdiff
unwind.c: cleanup
authorEugene Syromiatnikov <esyr@redhat.com>
Fri, 4 Aug 2017 06:45:06 +0000 (08:45 +0200)
committerDmitry V. Levin <ldv@altlinux.org>
Mon, 20 Nov 2017 21:39:59 +0000 (21:39 +0000)
* unwind.c (rebuild_cache_if_invalid): Simplify return statement.

unwind.c

index 38ace6e474ddb8d14b8495bba05ebf981e670fd9..c097e875cc28e01fb48e923e58969ab8d0a69be4 100644 (file)
--- 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