]> Git Repo - J-u-boot.git/commit
video: vesa_fb: Fix wrong return value check of pci_find_class()
authorBin Meng <[email protected]>
Thu, 1 Oct 2015 07:36:00 +0000 (00:36 -0700)
committerSimon Glass <[email protected]>
Wed, 21 Oct 2015 13:46:25 +0000 (07:46 -0600)
commitaf67e7ce237fa0956168efca7909458d4ea93d4b
tree49a358c6e390889c457200c6a678d266c52e546b
parentcdf9f085f209ba214178fe749133096721a208a6
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: Bin Meng <[email protected]>
Acked-by: Simon Glass <[email protected]>
Acked-by: Anatolij Gustschin <[email protected]>
drivers/video/vesa_fb.c
This page took 0.033857 seconds and 4 git commands to generate.