projects
/
platform
/
kernel
/
u-boot.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
video: vesa_fb: Fix wrong return value check of pci_find_class()
[platform/kernel/u-boot.git]
/
drivers
/
video
/
vesa_fb.c
diff --git
a/drivers/video/vesa_fb.c
b/drivers/video/vesa_fb.c
index
4e6d070
..
a19651f
100644
(file)
--- a/
drivers/video/vesa_fb.c
+++ b/
drivers/video/vesa_fb.c
@@
-34,7
+34,7
@@
void *video_hw_init(void)
}
if (vbe_get_video_info(gdev)) {
dev = pci_find_class(PCI_CLASS_DISPLAY_VGA << 8, 0);
- if (dev
== -1
) {
+ if (dev
< 0
) {
printf("no card detected\n");
return NULL;
}