vt: separate unicode handling into vc_translate_unicode
authorJiri Slaby <jslaby@suse.cz>
Mon, 15 Jun 2020 07:48:44 +0000 (09:48 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 24 Jun 2020 15:08:32 +0000 (17:08 +0200)
commit694d8a487c8bc2a0b35b9da951b0635c6a256ea6
tree2dedfea799d5eb36c328e758ce14738fa3864728
parentda823b2dc03749f0d1b2d051b37f222e5a3918d7
vt: separate unicode handling into vc_translate_unicode

do_con_write is complicated enough. Extract unicode handling to a
separate function. For do_con_write, 249 LOCs lowered to 183 lines.

Use diff -w -b to see the difference is neligible -- mostly whitespace
and use of 'return's instead of 'continue's.

Signed-off-by: Jiri Slaby <jslaby@suse.cz>
Link: https://lore.kernel.org/r/20200615074910.19267-12-jslaby@suse.cz
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/tty/vt/vt.c