Commit 0ebc4f05 authored by Andrey Vagin's avatar Andrey Vagin Committed by Pavel Emelyanov

cr-restore: remove extra initialization of variables

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: 's avatarAndrey Vagin <avagin@openvz.org>
Signed-off-by: 's avatarPavel Emelyanov <xemul@parallels.com>
parent e08562c2
...@@ -1792,9 +1792,6 @@ static int sigreturn_restore(pid_t pid, CoreEntry *core) ...@@ -1792,9 +1792,6 @@ static int sigreturn_restore(pid_t pid, CoreEntry *core)
pr_info("Restore via sigreturn\n"); pr_info("Restore via sigreturn\n");
restore_task_vma_len = 0;
restore_thread_vma_len = 0;
ret = parse_smaps(pid, &self_vmas, false); ret = parse_smaps(pid, &self_vmas, false);
close_proc(); close_proc();
if (ret < 0) if (ret < 0)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment