diff options
author | Ye Li <ye.li@nxp.com> | 2018-09-10 07:29:22 -0700 |
---|---|---|
committer | Ye Li <ye.li@nxp.com> | 2018-09-11 21:55:43 -0700 |
commit | 024b84b47f33ac49a6a477b7fdf7a10fa417b6b1 (patch) | |
tree | 64c29e1b92dbc330b04d9bff6a57f4f62e6ba57a /arch | |
parent | 79e8d0441d8c5cf8bde5ce1e332ffcb780c86986 (diff) |
MLK-19526-3 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>
Diffstat (limited to 'arch')
-rw-r--r-- | arch/arm/mach-imx/video.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/arch/arm/mach-imx/video.c b/arch/arm/mach-imx/video.c index eb799fb75d..0f9464141e 100644 --- a/arch/arm/mach-imx/video.c +++ b/arch/arm/mach-imx/video.c @@ -12,7 +12,7 @@ int board_video_skip(void) { int i; - int ret; + int ret = 0; char const *panel = env_get("panel"); if (!panel) { @@ -68,7 +68,7 @@ int board_video_skip(void) return -EINVAL; } - return 0; + return ret; } #ifdef CONFIG_IMX_HDMI |