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

Cyrill Gorcunov gorcunov at virtuozzo.com
Fri Jun 26 09:40:45 PDT 2015


It cause unused variables warning.

Signed-off-by: Cyrill Gorcunov <gorcunov at virtuozzo.com>
---
 kernel/ve/console.c |    3 ---
 1 file changed, 3 deletions(-)

Index: linux-pcs7.git/kernel/ve/console.c
===================================================================
--- linux-pcs7.git.orig/kernel/ve/console.c
+++ linux-pcs7.git/kernel/ve/console.c
@@ -127,14 +127,11 @@ static const struct tty_operations vz_tt
 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