vt: rearrange vc_translate_unicode
authorJiri Slaby <jslaby@suse.cz>
Mon, 15 Jun 2020 07:48:45 +0000 (09:48 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 24 Jun 2020 15:08:32 +0000 (17:08 +0200)
commitede98d12b6c2bdb34efcd64369ca3ab2af304e16
tree810bef35e8f6fea36a42a447b06bf1a84e49873b
parent694d8a487c8bc2a0b35b9da951b0635c6a256ea6
vt: rearrange vc_translate_unicode

The code was too overcomplicated. Extract vc_sanitize_unicode to a
separate function and flatten the code. I believe the code is
straightforward now.

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