vt: simplify noncolor attributes in build_attr
authorJiri Slaby <jslaby@suse.cz>
Mon, 15 Jun 2020 07:49:00 +0000 (09:49 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 24 Jun 2020 15:08:33 +0000 (17:08 +0200)
commitc5c717e7a593558160b939dba4091e1ebbaf3778
treef837102bbbb1b7710eb45faa4f8ea346277a064a
parentfaace51b63ea258e95c2a168f65af193d41279d0
vt: simplify noncolor attributes in build_attr

All the attributes are bools, so do a simple shift instead of tests and
constants as bool is either 0 or 1.

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