]> git.ipfire.org Git - thirdparty/util-linux.git/commitdiff
agetty: remove variable that is set but not read
authorSami Kerola <kerolasa@iki.fi>
Thu, 30 Mar 2017 20:28:02 +0000 (21:28 +0100)
committerSami Kerola <kerolasa@iki.fi>
Sat, 1 Apr 2017 08:24:30 +0000 (09:24 +0100)
Signed-off-by: Sami Kerola <kerolasa@iki.fi>
term-utils/agetty.c

index da6c9e5e36cf9f580dbc5f3273d232c34407fd57..6a2085a3c4bd899dede68c496df8397a6670a197 100644 (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");
        }