tty/vt: consolemap: make con_set_unimap() more readable
authorJiri Slaby <jslaby@suse.cz>
Tue, 7 Jun 2022 10:49:23 +0000 (12:49 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 10 Jun 2022 11:37:01 +0000 (13:37 +0200)
commit6e4e8d74664a2bf46c74dfcf0d8a600acbbc4d6d
treecf7df5ae0e0b107bac7814c063d6c10a9903bd5e
parentacf90b4d52e6965cbc3b115a68e0f063f703719c
tty/vt: consolemap: make con_set_unimap() more readable

The indentation was completely broken in con_set_unimap(). Reorder the
code using 'if (!cond) continue;'s so that the code makes sense. Not
that it is perfect now, but it can be followed at least. More cleanup to
come. And remove all those useless whitespaces at the EOLs too.

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