diff mbox

video: pxa168fb: remove a redundant pxa168fb_check_var call

Message ID 1295608686.3976.9.camel@phoenix (mailing list archive)
State Accepted
Commit e88e43b0c564864c883103483bad6219f77dfb52
Headers show

Commit Message

axel lin Jan. 21, 2011, 11:18 a.m. UTC
None
diff mbox

Patch

diff --git a/drivers/video/pxa168fb.c b/drivers/video/pxa168fb.c
index cea6403..35f61dd 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