From: Nikita Kiryanov Date: Mon, 25 Jun 2012 10:04:01 +0300 Subject: [U-Boot] [PATCH V2 1/4] common lcd: simplify lcd_logo In-Reply-To: <1340607844-8718-1-git-send-email-nikita@compulab.co.il> References: <1340607844-8718-1-git-send-email-nikita@compulab.co.il> Message-ID: <1340607844-8718-2-git-send-email-nikita@compulab.co.il> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de Simplify lcd_logo by extracting bmp unzip into its own function. Signed-off-by: Nikita Kiryanov --- Changes in V2: - used bitmap_display() to further simplify code common/lcd.c | 12 +----------- 1 files changed, 1 insertions(+), 11 deletions(-) diff --git a/common/lcd.c b/common/lcd.c index 506a138..8890635 100644 --- a/common/lcd.c +++ b/common/lcd.c @@ -842,17 +842,7 @@ static void *lcd_logo(void) } #endif /* CONFIG_SPLASH_SCREEN_ALIGN */ -#ifdef CONFIG_VIDEO_BMP_GZIP - bmp_image_t *bmp = (bmp_image_t *)addr; - unsigned long len; - - if (!((bmp->header.signature[0] == 'B') && - (bmp->header.signature[1] == 'M'))) { - addr = (ulong)gunzip_bmp(addr, &len); - } -#endif - - if (lcd_display_bitmap(addr, x, y) == 0) + if (bmp_display(addr, x, y) == 0) return (void *)lcd_base; } #endif /* CONFIG_SPLASH_SCREEN */ -- 1.7.1