[U-Boot] [PATCH 2/6] video: vesa_fb: Fix wrong return value check of pci_find_class()

Simon Glass sjg at chromium.org
Sat Oct 3 16:29:12 CEST 2015


On 1 October 2015 at 08:36, Bin Meng <bmeng.cn at gmail.com> wrote:
> When pci_find_class() fails to find a device, it returns -ENODEV.
> But now we check the return value against -1. Fix it.
>
> Signed-off-by: Bin Meng <bmeng.cn at gmail.com>
> ---
>
>  drivers/video/vesa_fb.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)

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


More information about the U-Boot mailing list