commit | 85ad5898e1716064d5841add5b4b29225ec27745 | [log] [tgz] |
---|---|---|
author | Bin Meng <bmeng.cn@gmail.com> | Thu Oct 01 00:36:00 2015 -0700 |
committer | Simon Glass <sjg@chromium.org> | Wed Oct 21 07:46:25 2015 -0600 |
tree | 49a358c6e390889c457200c6a678d266c52e546b | |
parent | 9dd7c00dbb6f44db36e05083897aeb021d2dc7da [diff] |
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 <bmeng.cn@gmail.com> Acked-by: Simon Glass <sjg@chromium.org> Acked-by: Anatolij Gustschin <agust@denx.de>