#ifdef CONFIG_LOGO
 
-static inline unsigned safe_shift(unsigned d, int n)
+static inline unsigned int safe_shift(unsigned int d, int n)
 {
        return n < 0 ? d >> -n : d << n;
 }
                                            const struct linux_logo *logo,
                                            u32 *palette)
 {
-       static const unsigned char mask[] = { 0,0x80,0xc0,0xe0,0xf0,0xf8,0xfc,0xfe,0xff };
+       static const unsigned char mask[] = {
+               0, 0x80, 0xc0, 0xe0, 0xf0, 0xf8, 0xfc, 0xfe, 0xff
+       };
        unsigned char redmask, greenmask, bluemask;
        int redshift, greenshift, blueshift;
        int i;
        greenshift = info->var.green.offset - (8 - info->var.green.length);
        blueshift  = info->var.blue.offset  - (8 - info->var.blue.length);
 
-       for ( i = 0; i < logo->clutsize; i++) {
+       for (i = 0; i < logo->clutsize; i++) {
                palette[i+32] = (safe_shift((clut[0] & redmask), redshift) |
                                 safe_shift((clut[1] & greenmask), greenshift) |
                                 safe_shift((clut[2] & bluemask), blueshift));
 
        for (i = 0; i < height; i++)
                for (j = 0; j < width; j++)
-                               out[height * j + h - i] = *in++;
+                       out[height * j + h - i] = *in++;
 }
 
 static void fb_rotate_logo_ccw(const u8 *in, u8 *out, u32 width, u32 height)
        /* Return if no suitable logo was found */
        fb_logo.logo = fb_find_logo(depth);
 
-       if (!fb_logo.logo) {
+       if (!fb_logo.logo)
                return 0;
-       }
 
        if (rotate == FB_ROTATE_UR || rotate == FB_ROTATE_UD)
                yres = info->var.yres;