diff mbox

[U-Boot,08/12] drivers/video/bus_vcxk.c: Fix GCC 4.6 warning

Message ID 1321399263-13826-9-git-send-email-agust@denx.de
State Accepted
Commit 5dfc9e146a839271114dcad3f5a7501f8661dca0
Headers show

Commit Message

Anatolij Gustschin Nov. 15, 2011, 11:20 p.m. UTC
Fix:
bus_vcxk.c: In function 'vcxk_display_bitmap':
bus_vcxk.c:396:16: warning: variable 'compression' set but not used
[-Wunused-but-set-variable]

Signed-off-by: Anatolij Gustschin <agust@denx.de>
---
 drivers/video/bus_vcxk.c |    2 --
 1 files changed, 0 insertions(+), 2 deletions(-)

Comments

Wolfgang Denk Nov. 16, 2011, 8:36 p.m. UTC | #1
Dear Anatolij Gustschin,

In message <1321399263-13826-9-git-send-email-agust@denx.de> you wrote:
> Fix:
> bus_vcxk.c: In function 'vcxk_display_bitmap':
> bus_vcxk.c:396:16: warning: variable 'compression' set but not used
> [-Wunused-but-set-variable]
> 
> Signed-off-by: Anatolij Gustschin <agust@denx.de>
> ---
>  drivers/video/bus_vcxk.c |    2 --
>  1 files changed, 0 insertions(+), 2 deletions(-)

Applied, thanks.

Best regards,

Wolfgang Denk
diff mbox

Patch

diff --git a/drivers/video/bus_vcxk.c b/drivers/video/bus_vcxk.c
index 7aecb92..9c4714d 100644
--- a/drivers/video/bus_vcxk.c
+++ b/drivers/video/bus_vcxk.c
@@ -393,7 +393,6 @@  int vcxk_display_bitmap(ulong addr, int x, int y)
 	unsigned long width;
 	unsigned long height;
 	unsigned long bpp;
-	unsigned long compression;
 
 	unsigned long lw;
 
@@ -404,7 +403,6 @@  int vcxk_display_bitmap(ulong addr, int x, int y)
 	bmp = (bmp_image_t *) addr;
 	if ((bmp->header.signature[0] == 'B') &&
 	    (bmp->header.signature[1] == 'M')) {
-		compression  = le32_to_cpu(bmp->header.compression);
 		width        = le32_to_cpu(bmp->header.width);
 		height       = le32_to_cpu(bmp->header.height);
 		bpp          = le16_to_cpu(bmp->header.bit_count);