imx: video: Fix return value issue

When framebuffer driver init is failed, we should return the err value not 0.
So the video init can exit immediately.

Signed-off-by: Ye Li <ye.li@nxp.com>
Reviewed-by: Peng Fan <peng.fan@nxp.com>
This commit is contained in:
Ye Li 2019-01-04 09:11:05 +00:00 committed by Anatolij Gustschin
parent 2f41ade79e
commit 3fd39937b1

View File

@ -7,7 +7,7 @@
int board_video_skip(void)
{
int i;
int ret;
int ret = 0;
char const *panel = env_get("panel");
if (!panel) {
@ -50,7 +50,7 @@ int board_video_skip(void)
return -EINVAL;
}
return 0;
return ret;
}
#ifdef CONFIG_IMX_HDMI