commit | b9813e2c5a4c821cfafc013e166abc7305cc3e65 | [log] [tgz] |
---|---|---|
author | Michal Suchanek <msuchanek@suse.de> | Wed Oct 12 21:57:56 2022 +0200 |
committer | Simon Glass <sjg@chromium.org> | Mon Oct 17 21:17:12 2022 -0600 |
tree | 8e17d031e8d4d4e76c009997848e6bed6a27ae59 | |
parent | 73ba6768a49ab30ff41773e01d6c7819795743a8 [diff] |
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>