]> git.kernelconcepts.de Git - karo-tx-uboot.git/commitdiff
drivers/video/bus_vcxk.c: Fix GCC 4.6 warning
authorAnatolij Gustschin <agust@denx.de>
Tue, 15 Nov 2011 13:20:59 +0000 (13:20 +0000)
committerWolfgang Denk <wd@denx.de>
Wed, 16 Nov 2011 20:36:22 +0000 (21:36 +0100)
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

index 7aecb92f69a014fb694539113899ee58a41e2f84..9c4714d50a5a444aa7128f08805163f385994270 100644 (file)
@@ -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);