Re: [PATCH] video: pxa168fb: remove a redundant pxa168fb_check_var call

2 messages, 2 authors, 2011-01-21 · open the first message on its own page

Re: [PATCH] video: pxa168fb: remove a redundant pxa168fb_check_var call

From: Marek Vasut <hidden>
Date: 2011-01-21 18:05:31

On Friday 21 January 2011 12:18:06 Axel Lin wrote:
quoted hunk
Current implementation calls pxa168fb_check_var twice in pxa168fb_probe.

Signed-off-by: Axel Lin <redacted>
---
 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
Please, don't use the get_maintainers script. This CCs too many people, really. 
As for pxa168, only CC linux-arm-kernel, Eric, Haojian and that's about it 
(fixed). Thanks

I can't comment on the code, though Haojian, is there any particular reason why 
the call's twice in there? Maybe some HW quirk or something?

Cheers

Re: [PATCH] video: pxa168fb: remove a redundant pxa168fb_check_var call

From: Mark Brown <hidden>
Date: 2011-01-21 18:33:08

On Fri, Jan 21, 2011 at 07:07:07PM +0100, Marek Vasut wrote:
Please, don't use the get_maintainers script. This CCs too many people, really. 
*Using* get_maintainers.pl is fine, but it is important to apply taste
to the results since as you say it does generate false positives.
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help