From: Zbigniew Jędrzejewski-Szmek Date: Sat, 25 Feb 2017 14:35:09 +0000 (-0500) Subject: coredump: slight simplification X-Git-Tag: v233~11^2~9 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=a6a73a10e813d8ced0b4ae0da4d2b3fe9f00120b;p=thirdparty%2Fsystemd.git coredump: slight simplification --- diff --git a/src/coredump/coredump.c b/src/coredump/coredump.c index 0fa830c33ee..463e0abef46 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;