mirror of
https://github.com/checkpoint-restore/criu
synced 2025-08-31 14:25:49 +00:00
namespaces: remove unused code
Signed-off-by: Andrey Vagin <avagin@openvz.org> Signed-off-by: Pavel Emelyanov <xemul@parallels.com>
This commit is contained in:
committed by
Pavel Emelyanov
parent
f995673d99
commit
51fca3806c
@@ -350,14 +350,9 @@ int dump_task_ns_ids(struct pstree_item *item)
|
||||
|
||||
static int do_dump_namespaces(struct pid *ns_pid, unsigned int ns_flags)
|
||||
{
|
||||
struct cr_fdset *fdset;
|
||||
pid_t ns_id = ns_pid->virt;
|
||||
int ret = 0;
|
||||
|
||||
fdset = cr_ns_fdset_open(ns_pid->virt, O_DUMP);
|
||||
if (fdset == NULL)
|
||||
return -1;
|
||||
|
||||
if (ns_flags & CLONE_NEWUTS) {
|
||||
pr_info("Dump UTS namespace\n");
|
||||
ret = dump_uts_ns(ns_pid->real, ns_id);
|
||||
@@ -383,7 +378,6 @@ static int do_dump_namespaces(struct pid *ns_pid, unsigned int ns_flags)
|
||||
goto err;
|
||||
}
|
||||
err:
|
||||
close_cr_fdset(&fdset);
|
||||
return ret;
|
||||
|
||||
}
|
||||
|
Reference in New Issue
Block a user