video: fbdev: au1200fb: Style clean up

Style clean-up.

Signed-off-by: Christophe JAILLET <christophe.jaillet@wanadoo.fr>
Cc: Tejun Heo <tj@kernel.org>
Signed-off-by: Bartlomiej Zolnierkiewicz <b.zolnierkie@samsung.com>
This commit is contained in:
Christophe JAILLET 2017-11-09 18:09:30 +01:00 committed by Bartlomiej Zolnierkiewicz
parent 0620865611
commit ab798b9087
1 changed files with 4 additions and 4 deletions

View File

@ -1546,14 +1546,13 @@ static int au1200fb_init_fbinfo(struct au1200fb_device *fbdev)
} }
fbi->pseudo_palette = kcalloc(16, sizeof(u32), GFP_KERNEL); fbi->pseudo_palette = kcalloc(16, sizeof(u32), GFP_KERNEL);
if (!fbi->pseudo_palette) { if (!fbi->pseudo_palette)
return -ENOMEM; return -ENOMEM;
}
ret = fb_alloc_cmap(&fbi->cmap, AU1200_LCD_NBR_PALETTE_ENTRIES, 0); ret = fb_alloc_cmap(&fbi->cmap, AU1200_LCD_NBR_PALETTE_ENTRIES, 0);
if (ret < 0) { if (ret < 0) {
print_err("Fail to allocate colormap (%d entries)", print_err("Fail to allocate colormap (%d entries)",
AU1200_LCD_NBR_PALETTE_ENTRIES); AU1200_LCD_NBR_PALETTE_ENTRIES);
return ret; return ret;
} }
@ -1717,7 +1716,8 @@ static int au1200fb_drv_probe(struct platform_device *dev)
print_dbg("phys=0x%08x, size=%dK", fbdev->fb_phys, fbdev->fb_len / 1024); print_dbg("phys=0x%08x, size=%dK", fbdev->fb_phys, fbdev->fb_len / 1024);
/* Init FB data */ /* Init FB data */
if ((ret = au1200fb_init_fbinfo(fbdev)) < 0) ret = au1200fb_init_fbinfo(fbdev);
if (ret < 0)
goto failed; goto failed;
/* Register new framebuffer */ /* Register new framebuffer */