[PATCH v5 07/15] video: ipuv3: Fix error handling when getting the display

Simon Glass sjg at chromium.org
Thu Sep 29 12:00:35 CEST 2022


On Tue, 27 Sept 2022 at 15:38, Michal Suchanek <msuchanek at suse.de> wrote:
>
> 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 at suse.de>
> ---
>  drivers/video/imx/mxc_ipuv3_fb.c | 9 ++++-----
>  1 file changed, 4 insertions(+), 5 deletions(-)

Reviewed-by: Simon Glass <sjg at chromium.org>


More information about the U-Boot mailing list