From 650e6df62ca2f9da910e12afce5da9d4dfda92e8 Mon Sep 17 00:00:00 2001 From: Sami Kerola Date: Thu, 30 Mar 2017 21:28:02 +0100 Subject: agetty: remove variable that is set but not read Signed-off-by: Sami Kerola --- term-utils/agetty.c | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) (limited to 'term-utils/agetty.c') diff --git a/term-utils/agetty.c b/term-utils/agetty.c index da6c9e5e3..6a2085a3c 100644 --- a/term-utils/agetty.c +++ b/term-utils/agetty.c @@ -1279,15 +1279,10 @@ static void termio_init(struct options *op, struct termios *tp) /* Check for terminal size and if not found set default */ if (ioctl(STDIN_FILENO, TIOCGWINSZ, &ws) == 0) { - int set = 0; - if (ws.ws_row == 0) { + if (ws.ws_row == 0) ws.ws_row = 24; - set++; - } - if (ws.ws_col == 0) { + if (ws.ws_col == 0) ws.ws_col = 80; - set++; - } if (ioctl(STDIN_FILENO, TIOCSWINSZ, &ws)) debug("TIOCSWINSZ ioctl failed\n"); } -- cgit v1.2.3-55-g7522