From a6a73a10e813d8ced0b4ae0da4d2b3fe9f00120b Mon Sep 17 00:00:00 2001 From: Zbigniew Jędrzejewski-Szmek Date: Sat, 25 Feb 2017 09:35:09 -0500 Subject: coredump: slight simplification --- src/coredump/coredump.c | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) (limited to 'src') diff --git a/src/coredump/coredump.c b/src/coredump/coredump.c index 0fa830c33e..463e0abef4 100644 --- a/src/coredump/coredump.c +++ b/src/coredump/coredump.c @@ -1236,13 +1236,9 @@ static int process_kernel(int argc, char* argv[]) { context[CONTEXT_RLIMIT] = argv[CONTEXT_RLIMIT + 1]; r = gather_pid_metadata_and_process_special_crash(context, argv + CONTEXT_COMM + 1, NULL, iovec, &n_to_free); - if (r < 0) - goto finish; - if (r > 0) { - /* This was a special crash, and has already been processed. */ - r = 0; + if (r != 0) + /* Error, or a a special crash, which has already been processed. */ goto finish; - } n_iovec = n_to_free; -- cgit v1.2.3-54-g00ecf