Code cleanup: fix old style assignment ambiguities like "=-" etc.
[oweals/u-boot.git] / common / lcd.c
index 2178f12d5af7e592b52153ae1e4e9504c8c23b81..eec1f53b0a784655384f43dabe9509d653b1fe0b 100644 (file)
@@ -53,7 +53,6 @@
 #if defined(CONFIG_ATMEL_LCD)
 #include <atmel_lcdc.h>
 #include <nand.h>
-extern nand_info_t nand_info[];
 #endif
 
 #ifdef CONFIG_LCD
@@ -540,7 +539,7 @@ void bitmap_plot (int x, int y)
 
        debug ("Logo: width %d  height %d  colors %d  cmap %d\n",
                BMP_LOGO_WIDTH, BMP_LOGO_HEIGHT, BMP_LOGO_COLORS,
-               sizeof(bmp_logo_palette)/(sizeof(ushort)));
+               (int)(sizeof(bmp_logo_palette)/(sizeof(ushort))));
 
        bmap = &bmp_logo_bitmap[0];
        fb   = (uchar *)(lcd_base + y * lcd_line_length + x);
@@ -729,7 +728,7 @@ int lcd_display_bitmap(ulong bmp_image, int x, int y)
                WATCHDOG_RESET();
                for (j = 0; j < width ; j++)
 #if defined(CONFIG_PXA250)
-                       *(fb++)=*(bmap++);
+                       *(fb++) = *(bmap++);
 #elif defined(CONFIG_MPC823) || defined(CONFIG_MCC200)
                        *(fb++)=255-*(bmap++);
 #endif