tty: vt: Remove some repetitive initialization
authoroushixiong <oushixiong@kylinos.cn>
Thu, 3 Aug 2023 06:54:09 +0000 (14:54 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 3 Aug 2023 07:51:51 +0000 (09:51 +0200)
commitf68279ca7f806c44fbbae0a631e5603ba426d9be
treed58cdc545e9c8198876b7fe1d74aba1778d452b5
parent220965d15cef417a6d6ecfbd41c64d582522f48c
tty: vt: Remove some repetitive initialization

Members vc_col, vc_rows and vc_size_row of the struct vc_data have been
initialized in visual_init(), so it is no longer needed to initialize
them in vc_init() again.

Signed-off-by: oushixiong <oushixiong@kylinos.cn>
Reviewed-by: Jiri Slaby <jirislaby@kernel.org>
Link: https://lore.kernel.org/r/20230803065409.461031-1-oushixiong@kylinos.cn
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/tty/vt/vt.c