[CRIU] [PATCH 11/13] cr-restore: remove extra initialization of variables
Andrey Vagin
avagin at openvz.org
Wed Apr 3 13:31:10 EDT 2013
cr-restore.c:1795:2: warning: Value stored to 'restore_task_vma_len' is
never read
restore_task_vma_len = 0;
^ ~
cr-restore.c:1796:2: warning: Value stored to 'restore_thread_vma_len'
is never read
restore_thread_vma_len = 0;
Signed-off-by: Andrey Vagin <avagin at openvz.org>
---
cr-restore.c | 3 ---
1 file changed, 3 deletions(-)
diff --git a/cr-restore.c b/cr-restore.c
index 17b6d0b..82fa577 100644
--- a/cr-restore.c
+++ b/cr-restore.c
@@ -1792,9 +1792,6 @@ static int sigreturn_restore(pid_t pid, CoreEntry *core)
pr_info("Restore via sigreturn\n");
- restore_task_vma_len = 0;
- restore_thread_vma_len = 0;
-
ret = parse_smaps(pid, &self_vmas, false);
close_proc();
if (ret < 0)
--
1.7.11.7
More information about the CRIU
mailing list