agetty: remove variable that is set but not read

Signed-off-by: Sami Kerola <kerolasa@iki.fi>
This commit is contained in:
Sami Kerola 2017-03-30 21:28:02 +01:00
parent eff2c9a426
commit 650e6df62c
No known key found for this signature in database
GPG Key ID: A9553245FDE9B739
1 changed files with 2 additions and 7 deletions

View File

@ -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");
}