Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit e88e43b0 authored by Axel Lin's avatar Axel Lin Committed by Paul Mundt
Browse files

video: pxa168fb: remove a redundant pxa168fb_check_var call



Current implementation calls pxa168fb_check_var twice in pxa168fb_probe.

Signed-off-by: default avatarAxel Lin <axel.lin@gmail.com>
Signed-off-by: default avatarPaul Mundt <lethal@linux-sh.org>
parent 360c202b
Loading
Loading
Loading
Loading
+1 −5
Original line number Diff line number Diff line
@@ -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