vgacon: switch boolean variables to bool
authorJiri Slaby <jslaby@suse.cz>
Mon, 3 Oct 2016 09:18:38 +0000 (11:18 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 27 Oct 2016 14:37:44 +0000 (16:37 +0200)
commit96fd95542391d2ceb15515f41566dbb6776d9858
treeaaa64a7c67aba047f34b7706d5b50f0938f53935
parent7c918cdceb32c50b3f4a31eec177076c9a151b35
vgacon: switch boolean variables to bool

These variables:
* vga_can_do_color
* vgacon_text_mode_force
* vga_font_is_default
* vga_hardscroll_enabled
* vga_hardscroll_user_enable
* vga_init_done
* vga_is_gfx
* vga_palette_blanked
* vga_512_chars
are used exclusively as a boolean value, so make them really a bool.

Remove also useless "? true : false".

__read_mostly annotations removed too as they obfuscate the code and I
doubt they improve anything measurable given the variables are used
from .con_scroll, .con_startup and such.

Signed-off-by: Jiri Slaby <jslaby@suse.cz>
Cc: Tomi Valkeinen <tomi.valkeinen@ti.com>
Cc: <linux-fbdev@vger.kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/video/console/vgacon.c