OSDN Git Service

tty/vt: consolemap: decrypt inverse_translate()
authorJiri Slaby <jslaby@suse.cz>
Tue, 7 Jun 2022 10:49:14 +0000 (12:49 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 10 Jun 2022 11:37:01 +0000 (13:37 +0200)
commit2097dc2273a5b5254d0fad79afdedd223035b2d5
tree1d252c146b5d4354633f6c193cd463b45d669030
parentdb8f597a47127d0554f9c059a6da35f3ff34e773
tty/vt: consolemap: decrypt inverse_translate()

Fix invalid indentation and demystify the code by removing superfluous
"else"s. The "else"s are unneeded as they always follow an "if"-true
branch containing a "return". The code is now way more readable.

Reviewed-by: Ilpo Järvinen <ilpo.jarvinen@linux.intel.com>
Signed-off-by: Jiri Slaby <jslaby@suse.cz>
Link: https://lore.kernel.org/r/20220607104946.18710-4-jslaby@suse.cz
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/tty/vt/consolemap.c