mirror of
https://github.com/adulau/aha.git
synced 2025-01-02 14:13:18 +00:00
fbcon: make logo_height a local variable
Make logo_height variable local in the only function it is used. Signed-off-by: Krzysztof Helt <krzysztof.h1@wp.pl> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
This commit is contained in:
parent
d22579b837
commit
49a1d28f57
1 changed files with 2 additions and 3 deletions
|
@ -107,9 +107,7 @@ static struct display fb_display[MAX_NR_CONSOLES];
|
||||||
|
|
||||||
static signed char con2fb_map[MAX_NR_CONSOLES];
|
static signed char con2fb_map[MAX_NR_CONSOLES];
|
||||||
static signed char con2fb_map_boot[MAX_NR_CONSOLES];
|
static signed char con2fb_map_boot[MAX_NR_CONSOLES];
|
||||||
#ifndef MODULE
|
|
||||||
static int logo_height;
|
|
||||||
#endif
|
|
||||||
static int logo_lines;
|
static int logo_lines;
|
||||||
/* logo_shown is an index to vc_cons when >= 0; otherwise follows FBCON_LOGO
|
/* logo_shown is an index to vc_cons when >= 0; otherwise follows FBCON_LOGO
|
||||||
enums. */
|
enums. */
|
||||||
|
@ -607,6 +605,7 @@ static void fbcon_prepare_logo(struct vc_data *vc, struct fb_info *info,
|
||||||
struct fbcon_ops *ops = info->fbcon_par;
|
struct fbcon_ops *ops = info->fbcon_par;
|
||||||
int cnt, erase = vc->vc_video_erase_char, step;
|
int cnt, erase = vc->vc_video_erase_char, step;
|
||||||
unsigned short *save = NULL, *r, *q;
|
unsigned short *save = NULL, *r, *q;
|
||||||
|
int logo_height;
|
||||||
|
|
||||||
if (info->flags & FBINFO_MODULE) {
|
if (info->flags & FBINFO_MODULE) {
|
||||||
logo_shown = FBCON_LOGO_DONTSHOW;
|
logo_shown = FBCON_LOGO_DONTSHOW;
|
||||||
|
|
Loading…
Reference in a new issue