[CRIU] [PATCH 2/4] net: Kill unused argument in open_net_ns()

Kirill Tkhai ktkhai at virtuozzo.com
Fri Feb 24 03:31:19 PST 2017


Nobody uses it.

Signed-off-by: Kirill Tkhai <ktkhai at virtuozzo.com>
---
 criu/net.c |    6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/criu/net.c b/criu/net.c
index b420fbbdd..533d6f3ce 100644
--- a/criu/net.c
+++ b/criu/net.c
@@ -1701,7 +1701,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;
 
@@ -1743,7 +1743,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);
 }
@@ -1783,7 +1783,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;
 	}
 



More information about the CRIU mailing list