tty/vt: consolemap: make con_get_unimap() more readable
authorJiri Slaby <jslaby@suse.cz>
Tue, 7 Jun 2022 10:49:24 +0000 (12:49 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 10 Jun 2022 11:37:02 +0000 (13:37 +0200)
commit6364d391363a0ac498a852ff4bec32d82e913ee8
treeabdf874a2c944af54460be2f9d4e24342571faf6
parent6e4e8d74664a2bf46c74dfcf0d8a600acbbc4d6d
tty/vt: consolemap: make con_get_unimap() more readable

The indentation is completely broken in con_get_unimap(). Reorder the
code using "if (!cond) continue;"s so that the code makes sense. Switch
also the "p" assignment and add a short path using goto. This makes the
code readable again.

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-14-jslaby@suse.cz
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/tty/vt/consolemap.c