From: Ye Li Date: Fri, 4 Jan 2019 09:11:05 +0000 (+0000) Subject: imx: video: Fix return value issue X-Git-Tag: v2019.04-rc1~11^2~2 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=3fd39937b1aeef3a4937b82f1efd6c101e156fd4;p=oweals%2Fu-boot.git 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 Reviewed-by: Peng Fan --- diff --git a/arch/arm/mach-imx/video.c b/arch/arm/mach-imx/video.c index b40ce53405..953fe53cb4 100644 --- a/arch/arm/mach-imx/video.c +++ b/arch/arm/mach-imx/video.c @@ -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