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

Anatolij Gustschin agust at denx.de
Wed Oct 7 20:40:54 CEST 2015


On Thu,  1 Oct 2015 00:36:00 -0700
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: Anatolij Gustschin <agust at denx.de>


More information about the U-Boot mailing list