[U-Boot] [PATCH 2/6] video: vesa_fb: Fix wrong return value check of pci_find_class()
Simon Glass
sjg at chromium.org
Sun Oct 18 23:36:54 CEST 2015
On 7 October 2015 at 12:40, Anatolij Gustschin <agust at denx.de> wrote:
> 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>
Applied to u-boot-x86, thanks!
More information about the U-Boot
mailing list