[2/4] dump: remove dead code

Submitted by Andrey Vagin on May 15, 2018, 10:55 p.m.

Details

Message ID 20180515225559.7309-2-avagin@virtuozzo.com
State New
Series "Series without cover letter"
Headers show

Commit Message

Andrey Vagin May 15, 2018, 10:55 p.m.
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@virtuozzo.com>
---
 criu/cr-dump.c | 3 ---
 1 file changed, 3 deletions(-)

Patch hide | download patch | download mbox

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;