From 0836e1147496382c156b752a806e266a183be5e3 Mon Sep 17 00:00:00 2001 From: Anna Henningsen Date: Sat, 11 Nov 2017 14:41:22 +0100 Subject: [PATCH] src: remove superfluous check in backtrace_posix.cc The error check doesn't matter because a failure would be ignored as part of the loop condition. --- src/backtrace_posix.cc | 3 --- 1 file changed, 3 deletions(-) diff --git a/src/backtrace_posix.cc b/src/backtrace_posix.cc index 0c69d820e7212a..c7a6bea1938a7c 100644 --- a/src/backtrace_posix.cc +++ b/src/backtrace_posix.cc @@ -25,9 +25,6 @@ void DumpBacktrace(FILE* fp) { #if HAVE_EXECINFO_H void* frames[256]; const int size = backtrace(frames, arraysize(frames)); - if (size <= 0) { - return; - } for (int i = 1; i < size; i += 1) { void* frame = frames[i]; fprintf(fp, "%2d: ", i);