]> git.baikalelectronics.ru Git - uboot.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)
commite7a44e3b2e29f4a161ea998273c9c20688f54343
tree8e17d031e8d4d4e76c009997848e6bed6a27ae59
parent9f8e5706b8082ac088845f1043d03aa8aaf75dd8
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: e1c4b79c54 ("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