]> git.dujemihanovic.xyz Git - u-boot.git/commit
video: ipuv3: Fix error handling when getting the display
authorMichal Suchanek <msuchanek@suse.de>
Wed, 12 Oct 2022 19:57:56 +0000 (21:57 +0200)
committerSimon Glass <sjg@chromium.org>
Tue, 18 Oct 2022 03:17:12 +0000 (21:17 -0600)
commitf42642347120d988e7cf6986139e7ec68e36bc6b
tree8e17d031e8d4d4e76c009997848e6bed6a27ae59
parent7ff12631b44cdbb86c868ce02efd5a06429c7683
video: ipuv3: Fix error handling when getting the display

The code checks that uclass_first_device returned a device but the
returned value that is assigned is never used. Use
uclass_first_device_err instead, and move the error return outside of
the if block.

Fixes: f4ec1ae08e ("mxc_ipuv3_fb.c: call display_enable")
Signed-off-by: Michal Suchanek <msuchanek@suse.de>
Reviewed-by: Simon Glass <sjg@chromium.org>
drivers/video/imx/mxc_ipuv3_fb.c