drivers/video/imsttfb.c: add missing curly brackets
authorRoel Kluin <12o3l@tiscali.nl>
Mon, 28 Apr 2008 09:15:15 +0000 (02:15 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Mon, 28 Apr 2008 15:58:38 +0000 (08:58 -0700)
in #if 0 inactivated function msttfb_load_cursor_image() the call eieio()
occurs after rather than in the loop due to missing curly brackets.

Signed-off-by: Roel Kluin <12o3l@tiscali.nl>
Cc: Stephen Rothwell <sfr@canb.auug.org.au>
Cc: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
drivers/video/imsttfb.c

index 3ab91bf21576b37d1b31eb7b784030d953d0b587..04696f93dfc93e3521a0448e4eec354bf09d0994 100644 (file)
@@ -1151,8 +1151,10 @@ imsttfb_load_cursor_image(struct imstt_par *par, int width, int height, __u8 fgc
                                par->cmap_regs[TVPCRDAT] = 0xff;                eieio();
                        }
                par->cmap_regs[TVPCADRW] = 0x00;        eieio();
-               for (x = 0; x < 12; x++)
-                       par->cmap_regs[TVPCDATA] = fgc; eieio();
+               for (x = 0; x < 12; x++) {
+                       par->cmap_regs[TVPCDATA] = fgc;
+                       eieio();
+               }
        }
        return 1;
 }