[CRIU] [PATCH 2/4] dump: remove dead code

Andrei Vagin avagin at virtuozzo.com
Wed May 16 01:55:57 MSK 2018


CID 190175 (#1 of 1): Logically dead code (DEADCODE)
dead_error_line: Execution cannot reach this statement: goto err;.

Signed-off-by: Andrei Vagin <avagin at virtuozzo.com>
---
 criu/cr-dump.c | 3 ---
 1 file changed, 3 deletions(-)

diff --git a/criu/cr-dump.c b/criu/cr-dump.c
index a877d6e7d..88f8a8d88 100644
--- a/criu/cr-dump.c
+++ b/criu/cr-dump.c
@@ -1576,9 +1576,6 @@ static int cr_pre_dump_finish(int ret)
 
 	timing_stop(TIME_FROZEN);
 
-	if (ret < 0)
-		goto err;
-
 	pr_info("Pre-dumping tasks' memory\n");
 	for_each_pstree_item(item) {
 		struct parasite_ctl *ctl = dmpi(item)->parasite_ctl;
-- 
2.14.3



More information about the CRIU mailing list