From 04cd52c64a6ac4705b28c15aaa0d6275572cf6cc Mon Sep 17 00:00:00 2001 From: Kirill Tkhai Date: Fri, 24 Feb 2017 14:31:19 +0300 Subject: [PATCH] net: Kill unused argument in open_net_ns() Nobody uses it. Signed-off-by: Kirill Tkhai Signed-off-by: Andrei Vagin --- criu/net.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/criu/net.c b/criu/net.c index 4084c9b87..3438a83fc 100644 --- a/criu/net.c +++ b/criu/net.c @@ -1933,7 +1933,7 @@ static int prepare_net_ns(int nsid) return ret; } -static int open_net_ns(struct ns_id *nsid, struct rst_info *rst) +static int open_net_ns(struct ns_id *nsid) { int fd, id; @@ -1975,7 +1975,7 @@ static int create_net_ns(void *arg) } if (prepare_net_ns(ns->id)) exit(4); - if (open_net_ns(ns, rsti(root_item))) + if (open_net_ns(ns)) exit(5); exit(0); } @@ -2015,7 +2015,7 @@ int prepare_net_namespaces() if (prepare_net_ns(nsid->id)) goto err; - if (open_net_ns(nsid, rsti(root_item))) + if (open_net_ns(nsid)) goto err; }