diff options
author | axel lin <axel.lin@gmail.com> | 2011-01-21 12:18:06 +0100 |
---|---|---|
committer | Paul Mundt <lethal@linux-sh.org> | 2011-01-25 07:09:19 +0100 |
commit | e88e43b0c564864c883103483bad6219f77dfb52 (patch) | |
tree | 123c3d621080dd089242635d23e41de371b5f40e /drivers/video/pxa168fb.c | |
parent | video: da8xx-fb: fix fb_probe error path (diff) | |
download | linux-e88e43b0c564864c883103483bad6219f77dfb52.tar.xz linux-e88e43b0c564864c883103483bad6219f77dfb52.zip |
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 '')
-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) */ 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 |