]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
coredump: slight simplification
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Sat, 25 Feb 2017 14:35:09 +0000 (09:35 -0500)
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Sat, 25 Feb 2017 16:49:29 +0000 (11:49 -0500)
src/coredump/coredump.c

index 0fa830c33ee2babc77534467e7226d453858c455..463e0abef461ba4c499aa604ee6e28bce118413c 100644 (file)
@@ -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;