• J
    vgacon: switch boolean variables to bool · 96fd9554
    Jiri Slaby 提交于
    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: NJiri Slaby <jslaby@suse.cz>
    Cc: Tomi Valkeinen <tomi.valkeinen@ti.com>
    Cc: <linux-fbdev@vger.kernel.org>
    Signed-off-by: NGreg Kroah-Hartman <gregkh@linuxfoundation.org>
    96fd9554
vgacon.c 40.3 KB