From aaeb25224d744021ee95cad9abf4a1facfccb458 Mon Sep 17 00:00:00 2001 From: Franck Bui Date: Fri, 21 Jun 2019 15:34:01 +0200 Subject: [PATCH] coredump: gather_pid_metadata() doesn't return 1 anymore Since commit 92e92d71faea0f107312f296b7756cc04281ba99, gather_pid_metadata() returns only 0 or a negative value. --- src/coredump/coredump.c | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/src/coredump/coredump.c b/src/coredump/coredump.c index 4cd08724fdc..add43e7b6f9 100644 --- a/src/coredump/coredump.c +++ b/src/coredump/coredump.c @@ -1276,11 +1276,7 @@ static int process_backtrace(int argc, char *argv[]) { r = gather_pid_metadata(context, iovec, &n_to_free); if (r < 0) goto finish; - if (r > 0) { - /* This was a special crash, and has already been processed. */ - r = 0; - goto finish; - } + n_iovec = n_to_free; for (;;) {