提交 e88e43b0 编写于 作者: A axel lin 提交者: Paul Mundt

video: pxa168fb: remove a redundant pxa168fb_check_var call

Current implementation calls pxa168fb_check_var twice in pxa168fb_probe.
Signed-off-by: NAxel Lin <axel.lin@gmail.com>
Signed-off-by: NPaul Mundt <lethal@linux-sh.org>
上级 360c202b
...@@ -701,16 +701,12 @@ static int __devinit pxa168fb_probe(struct platform_device *pdev) ...@@ -701,16 +701,12 @@ static int __devinit pxa168fb_probe(struct platform_device *pdev)
*/ */
pxa168fb_init_mode(info, mi); pxa168fb_init_mode(info, mi);
ret = pxa168fb_check_var(&info->var, info);
if (ret)
goto failed_free_fbmem;
/* /*
* Fill in sane defaults. * Fill in sane defaults.
*/ */
ret = pxa168fb_check_var(&info->var, info); ret = pxa168fb_check_var(&info->var, info);
if (ret) if (ret)
goto failed; goto failed_free_fbmem;
/* /*
* enable controller clock * enable controller clock
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册