diff options
author | Sami Kerola | 2017-03-30 22:28:02 +0200 |
---|---|---|
committer | Sami Kerola | 2017-04-01 10:24:30 +0200 |
commit | 650e6df62ca2f9da910e12afce5da9d4dfda92e8 (patch) | |
tree | 43e04cf9c945c4ea11b07b87699872c5916d4173 /term-utils/agetty.c | |
parent | tests: add --mountpoint to findmnt calls (diff) | |
download | kernel-qcow2-util-linux-650e6df62ca2f9da910e12afce5da9d4dfda92e8.tar.gz kernel-qcow2-util-linux-650e6df62ca2f9da910e12afce5da9d4dfda92e8.tar.xz kernel-qcow2-util-linux-650e6df62ca2f9da910e12afce5da9d4dfda92e8.zip |
agetty: remove variable that is set but not read
Signed-off-by: Sami Kerola <kerolasa@iki.fi>
Diffstat (limited to 'term-utils/agetty.c')
-rw-r--r-- | term-utils/agetty.c | 9 |
1 files changed, 2 insertions, 7 deletions
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"); } |