diff options
author | Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> | 2017-02-25 09:35:09 -0500 |
---|---|---|
committer | Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> | 2017-02-25 11:49:29 -0500 |
commit | a6a73a10e813d8ced0b4ae0da4d2b3fe9f00120b (patch) | |
tree | de086c16804fc61b0207045bef0ea046ad78204c /src | |
parent | 3b31c466345f0f569a953b30b03cb4b5df9e5ad5 (diff) |
coredump: slight simplification
Diffstat (limited to 'src')
-rw-r--r-- | src/coredump/coredump.c | 8 |
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; |