[S390] sclp_vt220: set initial terminal window size

When opening a SCLP VT220 terminal, the terminal window size is not
initialized (defaults to zero).
Since the SCLP VT220 terminal supports only 80x24, explicitly set
the window size to prevent (n)curses applications from guessing
the default setting.

Signed-off-by: Hendrik Brueckner <brueckner@linux.vnet.ibm.com>
Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>

authored by Hendrik Brueckner and committed by Martin Schwidefsky 0b665d77 0b4d7890

+4
+4
drivers/s390/char/sclp_vt220.c
··· 495 if (tty->driver_data == NULL) 496 return -ENOMEM; 497 tty->low_latency = 0; 498 } 499 return 0; 500 }
··· 495 if (tty->driver_data == NULL) 496 return -ENOMEM; 497 tty->low_latency = 0; 498 + if (!tty->winsize.ws_row && !tty->winsize.ws_col) { 499 + tty->winsize.ws_row = 24; 500 + tty->winsize.ws_col = 80; 501 + } 502 } 503 return 0; 504 }