]> git.hungrycats.org Git - linux/commitdiff
[PATCH] fbdev: clean up logo handling
authorAndrew Morton <akpm@osdl.org>
Sat, 15 May 2004 03:16:40 +0000 (20:16 -0700)
committerLinus Torvalds <torvalds@ppc970.osdl.org>
Sat, 15 May 2004 03:16:40 +0000 (20:16 -0700)
From: James Simmons <jsimmons@infradead.org>

This make the logo handling code easier to read.  Merged the two code blocks
since they test for the exact same condition.

drivers/video/console/fbcon.c

index 7444c1a81de5b8ae94378e80d7d5b494f0324897..4d17bd6aa55284d282b3daf7742f448d6e56c7ad 100644 (file)
@@ -766,7 +766,7 @@ static void fbcon_set_display(struct vc_data *vc, int init, int logo)
                        vc->vc_complement_mask <<= 1;
        }
 
-       if (!init) {
+       if (logo) {
                if (vc->vc_cols != nr_cols || vc->vc_rows != nr_rows)
                        vc_resize(vc->vc_num, nr_cols, nr_rows);
                else if (CON_IS_VISIBLE(vc) &&
@@ -783,9 +783,6 @@ static void fbcon_set_display(struct vc_data *vc, int init, int logo)
                        vc->vc_pos += logo_lines * vc->vc_size_row;
                        kfree(save);
                }
-       }
-
-       if (logo) {
                if (logo_lines > vc->vc_bottom) {
                        logo_shown = -1;
                        printk(KERN_INFO