From: Sami Kerola Date: Thu, 30 Mar 2017 20:28:02 +0000 (+0100) Subject: agetty: remove variable that is set but not read X-Git-Tag: v2.30-rc1~141^2~3 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=650e6df62ca2f9da910e12afce5da9d4dfda92e8;p=thirdparty%2Futil-linux.git agetty: remove variable that is set but not read Signed-off-by: Sami Kerola --- diff --git a/term-utils/agetty.c b/term-utils/agetty.c index da6c9e5e36..6a2085a3c4 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"); }