[Devel] [PATCH RHEL7 COMMIT] ve/vt: Drop debug vars from console code

Konstantin Khorenko khorenko at virtuozzo.com
Fri Jun 26 10:09:34 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.19
------>
commit 0c03843effa76448cf0e886009a47324fc850748
Author: Cyrill Gorcunov <gorcunov at virtuozzo.com>
Date:   Fri Jun 26 21:09:34 2015 +0400

    ve/vt: Drop debug vars from console code
    
    It cause unused variables warning.
    
    Signed-off-by: Cyrill Gorcunov <gorcunov at virtuozzo.com>
---
 kernel/ve/console.c | 3 ---
 1 file changed, 3 deletions(-)

diff --git a/kernel/ve/console.c b/kernel/ve/console.c
index 17201c7..922848a 100644
--- a/kernel/ve/console.c
+++ b/kernel/ve/console.c
@@ -127,14 +127,11 @@ static const struct tty_operations vz_tty_fops = {
 static struct tty_struct *vz_vt_lookup(struct tty_driver *driver,
 				       struct inode *inode, int idx)
 {
-	struct ve_struct *ve = driver->ve;
 	return driver->ttys[idx];
 }
 
 static int vz_vt_install(struct tty_driver *driver, struct tty_struct *tty)
 {
-	struct ve_struct *ve = driver->ve;
-
 	tty->port = kzalloc(sizeof(*tty->port), GFP_KERNEL);
 	if (!tty->port)
 		return -ENOMEM;



More information about the Devel mailing list