aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/tty/vt/vt.c
diff options
context:
space:
mode:
authorJiri Slaby <jslaby@suse.cz>2011-03-23 04:49:57 -0400
committerGreg Kroah-Hartman <gregkh@suse.de>2011-04-19 17:41:48 -0400
commitf2ee4ae87d7781ddb5bf8da25591b9b79966f8ea (patch)
treef67fb1b132a39d3f789764a6d56d41bbb73073f1 /drivers/tty/vt/vt.c
parent0e7f4194a0ef70c1d0d40152fa480a63719f35d5 (diff)
TTY: VT, remove unused variables
drivers/tty/vt/vt.c:892:2: warning: Value stored to 'old_screen_size' is never read old_screen_size = vc->vc_screenbuf_size; ^ ~~~~~~~~~~~~~~~~~~~~~ drivers/tty/vt/vt.c:890:2: warning: Value stored to 'old_cols' is never read old_cols = vc->vc_cols; ^ ~~~~~~~~~~~ Signed-off-by: Jiri Slaby <jslaby@suse.cz> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'drivers/tty/vt/vt.c')
-rw-r--r--drivers/tty/vt/vt.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/drivers/tty/vt/vt.c b/drivers/tty/vt/vt.c
index 4bea1efaec98..f287dca0d9d9 100644
--- a/drivers/tty/vt/vt.c
+++ b/drivers/tty/vt/vt.c
@@ -858,7 +858,7 @@ static int vc_do_resize(struct tty_struct *tty, struct vc_data *vc,
858{ 858{
859 unsigned long old_origin, new_origin, new_scr_end, rlth, rrem, err = 0; 859 unsigned long old_origin, new_origin, new_scr_end, rlth, rrem, err = 0;
860 unsigned long end; 860 unsigned long end;
861 unsigned int old_cols, old_rows, old_row_size, old_screen_size; 861 unsigned int old_rows, old_row_size;
862 unsigned int new_cols, new_rows, new_row_size, new_screen_size; 862 unsigned int new_cols, new_rows, new_row_size, new_screen_size;
863 unsigned int user; 863 unsigned int user;
864 unsigned short *newscreen; 864 unsigned short *newscreen;
@@ -887,9 +887,7 @@ static int vc_do_resize(struct tty_struct *tty, struct vc_data *vc,
887 return -ENOMEM; 887 return -ENOMEM;
888 888
889 old_rows = vc->vc_rows; 889 old_rows = vc->vc_rows;
890 old_cols = vc->vc_cols;
891 old_row_size = vc->vc_size_row; 890 old_row_size = vc->vc_size_row;
892 old_screen_size = vc->vc_screenbuf_size;
893 891
894 err = resize_screen(vc, new_cols, new_rows, user); 892 err = resize_screen(vc, new_cols, new_rows, user);
895 if (err) { 893 if (err) {