diff options
author | axel lin <axel.lin@gmail.com> | 2011-01-21 06:18:06 -0500 |
---|---|---|
committer | Paul Mundt <lethal@linux-sh.org> | 2011-01-25 01:09:19 -0500 |
commit | e88e43b0c564864c883103483bad6219f77dfb52 (patch) | |
tree | 123c3d621080dd089242635d23e41de371b5f40e /drivers/video/pxa168fb.c | |
parent | 360c202bebfecbedb129c07361ae8a738552eae3 (diff) |
video: pxa168fb: remove a redundant pxa168fb_check_var call
Current implementation calls pxa168fb_check_var twice in pxa168fb_probe.
Signed-off-by: Axel Lin <axel.lin@gmail.com>
Signed-off-by: Paul Mundt <lethal@linux-sh.org>
Diffstat (limited to 'drivers/video/pxa168fb.c')
-rw-r--r-- | 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 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) | |||
701 | */ | 701 | */ |
702 | pxa168fb_init_mode(info, mi); | 702 | pxa168fb_init_mode(info, mi); |
703 | 703 | ||
704 | ret = pxa168fb_check_var(&info->var, info); | ||
705 | if (ret) | ||
706 | goto failed_free_fbmem; | ||
707 | |||
708 | /* | 704 | /* |
709 | * Fill in sane defaults. | 705 | * Fill in sane defaults. |
710 | */ | 706 | */ |
711 | ret = pxa168fb_check_var(&info->var, info); | 707 | ret = pxa168fb_check_var(&info->var, info); |
712 | if (ret) | 708 | if (ret) |
713 | goto failed; | 709 | goto failed_free_fbmem; |
714 | 710 | ||
715 | /* | 711 | /* |
716 | * enable controller clock | 712 | * enable controller clock |