summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/coredump/coredump.c8
1 files changed, 2 insertions, 6 deletions
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;