From: axel lin Date: Fri, 21 Jan 2011 11:18:06 +0000 (+0000) Subject: video: pxa168fb: remove a redundant pxa168fb_check_var call X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=e88e43b0c564864c883103483bad6219f77dfb52;p=GitHub%2FLineageOS%2Fandroid_kernel_motorola_exynos9610.git video: pxa168fb: remove a redundant pxa168fb_check_var call Current implementation calls pxa168fb_check_var twice in pxa168fb_probe. Signed-off-by: Axel Lin Signed-off-by: Paul Mundt --- diff --git a/drivers/video/pxa168fb.c b/drivers/video/pxa168fb.c index cea6403ae71c..35f61dd0cb3a 100644 --- a/drivers/video/pxa168fb.c +++ b/drivers/video/pxa168fb.c @@ -701,16 +701,12 @@ static int __devinit pxa168fb_probe(struct platform_device *pdev) */ pxa168fb_init_mode(info, mi); - ret = pxa168fb_check_var(&info->var, info); - if (ret) - goto failed_free_fbmem; - /* * Fill in sane defaults. */ ret = pxa168fb_check_var(&info->var, info); if (ret) - goto failed; + goto failed_free_fbmem; /* * enable controller clock