Skip to content
Commit af67e7ce authored by Bin Meng's avatar Bin Meng Committed by Simon Glass
Browse files

video: vesa_fb: Fix wrong return value check of pci_find_class()



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: default avatarBin Meng <bmeng.cn@gmail.com>
Acked-by: default avatarSimon Glass <sjg@chromium.org>
Acked-by: default avatarAnatolij Gustschin <agust@denx.de>
parent cdf9f085
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment