mirror of
https://github.com/checkpoint-restore/criu
synced 2025-08-22 09:58:09 +00:00
dump: Drop FD_DESC_INVALID redundant assignment
It's assigned by FD_PARMS_INIT already. Signed-off-by: Cyrill Gorcunov <gorcunov@openvz.org> Signed-off-by: Pavel Emelyanov <xemul@parallels.com>
This commit is contained in:
parent
0468355c12
commit
043cfc99b1
@ -171,7 +171,6 @@ static int dump_task_exe_link(pid_t pid, MmEntry *mm)
|
|||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
|
|
||||||
params.fd = FD_DESC_INVALID;
|
|
||||||
mm->exe_file_id = fd_id_generate_special();
|
mm->exe_file_id = fd_id_generate_special();
|
||||||
|
|
||||||
ret = dump_one_reg_file(fd, mm->exe_file_id, ¶ms);
|
ret = dump_one_reg_file(fd, mm->exe_file_id, ¶ms);
|
||||||
@ -401,7 +400,6 @@ static int dump_filemap(pid_t pid, struct vma_entry *vma, int file_fd,
|
|||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
|
|
||||||
p.fd = FD_DESC_INVALID;
|
|
||||||
if ((vma->prot & PROT_WRITE) && vma_entry_is(vma, VMA_FILE_SHARED))
|
if ((vma->prot & PROT_WRITE) && vma_entry_is(vma, VMA_FILE_SHARED))
|
||||||
p.flags = O_RDWR;
|
p.flags = O_RDWR;
|
||||||
else
|
else
|
||||||
|
Loading…
x
Reference in New Issue
Block a user