All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] video: pxa168fb: remove a redundant pxa168fb_check_var call
@ 2011-01-21 11:18 ` Axel Lin
  0 siblings, 0 replies; 10+ messages in thread
From: Axel Lin @ 2011-01-21 11:18 UTC (permalink / raw)
  To: linux-kernel
  Cc: Lennert Buytenhek, Green Wan, Eric Miao, Marek Vasut,
	Haojian Zhuang, linux-fbdev, Paul Mundt, Lennert Buytenhek,
	Green Wan, Eric Miao, Marek Vasut, Haojian Zhuang, linux-fbdev,
	Paul Mundt

Current implementation calls pxa168fb_check_var twice in pxa168fb_probe.

Signed-off-by: Axel Lin <axel.lin@gmail.com>
---
 drivers/video/pxa168fb.c |    6 +-----
 1 files changed, 1 insertions(+), 5 deletions(-)

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
-- 
1.7.0.4




^ permalink raw reply related	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2011-01-25  6:11 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-01-21 11:18 [PATCH] video: pxa168fb: remove a redundant pxa168fb_check_var call Axel Lin
2011-01-21 11:18 ` Axel Lin
2011-01-20  3:50 ` [PATCH] video: da8xx-fb: fix fb_probe error path Axel Lin
2011-01-20  3:50   ` Axel Lin
2011-01-25  6:11   ` Paul Mundt
2011-01-25  6:11     ` Paul Mundt
2011-01-21 18:07 ` [PATCH] video: pxa168fb: remove a redundant pxa168fb_check_var call Marek Vasut
2011-01-21 18:07   ` Marek Vasut
2011-01-21 18:33   ` Mark Brown
2011-01-21 18:33     ` Mark Brown

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.