[Devel] [PATCH rh7 3/4] ve: do_env_create: zap unused ve_name variable

Vladimir Davydov vdavydov at parallels.com
Sun May 31 06:23:12 PDT 2015


Signed-off-by: Vladimir Davydov <vdavydov at parallels.com>
---
 kernel/ve/vecalls.c | 3 ---
 1 file changed, 3 deletions(-)

diff --git a/kernel/ve/vecalls.c b/kernel/ve/vecalls.c
index 02f57433e12d..5fdaf84a840e 100644
--- a/kernel/ve/vecalls.c
+++ b/kernel/ve/vecalls.c
@@ -396,7 +396,6 @@ static int do_env_create(envid_t veid, unsigned int flags, u32 class_id,
 	struct cred *new_creds, *old_creds;
 	int err;
 	struct nsproxy *old_ns;
-	char ve_name[VE_LEGACY_NAME_MAXLEN];
 	struct cgroup *ve_cgroup;
 	struct cgroup *dev_cgroup;
 
@@ -430,8 +429,6 @@ static int do_env_create(envid_t veid, unsigned int flags, u32 class_id,
 	if (err)
 		goto err_sched;
 
-	legacy_veid_to_name(veid, ve_name);
-
 	ve_cgroup = ve_cgroup_open(ve0.css.cgroup, CGRP_CREAT|CGRP_EXCL, veid);
 	err = PTR_ERR(ve_cgroup);
 	if (IS_ERR(ve_cgroup))
-- 
2.1.4




More information about the Devel mailing list