From bd58fce18f5736c725b33d4e7b6c89b7819fcbf6 Mon Sep 17 00:00:00 2001 From: Pavel Emelyanov Date: Mon, 8 Jul 2013 19:10:11 +0400 Subject: [PATCH] core: Sanitize check_core return evaluation Signed-off-by: Pavel Emelyanov --- cr-restore.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cr-restore.c b/cr-restore.c index 4d13bd9c9..79aa7f966 100644 --- a/cr-restore.c +++ b/cr-restore.c @@ -782,7 +782,7 @@ static int check_core(CoreEntry *core) ret = 0; out: - return ret < 0 ? ret : 0; + return ret; } static int restore_one_task(int pid, CoreEntry *core)