[lxc-devel] [lxc/master] remove useless parameters

JingWoo on Github lxc-bot at linuxcontainers.org
Fri Aug 28 08:55:04 UTC 2020


A non-text attachment was scrubbed...
Name: not available
Type: text/x-mailbox
Size: 345 bytes
Desc: not available
URL: <http://lists.linuxcontainers.org/pipermail/lxc-devel/attachments/20200828/642a144c/attachment.bin>
-------------- next part --------------
From a7c6e83042d5982b8e68505536e58cb1425b16b7 Mon Sep 17 00:00:00 2001
From: wujing <Jing.Woo at outlook.com>
Date: Fri, 28 Aug 2020 16:46:48 +0800
Subject: [PATCH] remove useless parameters

Signed-off-by: wujing <Jing.Woo at outlook.com>
---
 src/lxc/conf.c | 7 +++----
 1 file changed, 3 insertions(+), 4 deletions(-)

diff --git a/src/lxc/conf.c b/src/lxc/conf.c
index d570a75e82..5962009e34 100644
--- a/src/lxc/conf.c
+++ b/src/lxc/conf.c
@@ -2187,8 +2187,7 @@ static int mount_entry_on_relative_rootfs(struct mntent *mntent,
 	return mount_entry_on_generic(mntent, path, rootfs, lxc_name, lxc_path);
 }
 
-static int mount_file_entries(const struct lxc_conf *conf,
-			      const struct lxc_rootfs *rootfs, FILE *file,
+static int mount_file_entries(const struct lxc_rootfs *rootfs, FILE *file,
 			      const char *lxc_name, const char *lxc_path)
 {
 	char buf[PATH_MAX];
@@ -2237,7 +2236,7 @@ static int setup_mount(const struct lxc_conf *conf,
 	if (!f)
 		return log_error_errno(-1, errno, "Failed to open \"%s\"", fstab);
 
-	ret = mount_file_entries(conf, rootfs, f, lxc_name, lxc_path);
+	ret = mount_file_entries(rootfs, f, lxc_name, lxc_path);
 	if (ret < 0)
 		ERROR("Failed to set up mount entries");
 
@@ -2324,7 +2323,7 @@ static int setup_mount_entries(const struct lxc_conf *conf,
 	if (!f)
 		return -1;
 
-	return mount_file_entries(conf, rootfs, f, lxc_name, lxc_path);
+	return mount_file_entries(rootfs, f, lxc_name, lxc_path);
 }
 
 static int parse_cap(const char *cap)


More information about the lxc-devel mailing list