[Devel] [PATCH RHEL7 COMMIT] ve: do_env_create: zap unused ve_name variable

Konstantin Khorenko khorenko at virtuozzo.com
Thu Jun 4 06:07:29 PDT 2015


The commit is pushed to "branch-rh7-3.10.0-123.1.2-ovz" and will appear at https://src.openvz.org/scm/ovz/vzkernel.git
after rh7-3.10.0-123.1.2.vz7.5.9
------>
commit 9d83fd743872fc45852b0f5006c6ec3b2fe3312e
Author: Vladimir Davydov <vdavydov at parallels.com>
Date:   Thu Jun 4 17:07:29 2015 +0400

    ve: do_env_create: zap unused ve_name variable
    
    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 bff63b3..e2c9021 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))



More information about the Devel mailing list