aboutsummaryrefslogtreecommitdiff
path: root/boot/vbe.c
diff options
context:
space:
mode:
Diffstat (limited to 'boot/vbe.c')
-rw-r--r--boot/vbe.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/boot/vbe.c b/boot/vbe.c
index e6ee087..52b3283 100644
--- a/boot/vbe.c
+++ b/boot/vbe.c
@@ -40,7 +40,7 @@ int vbe_find_next_device(struct udevice **devp)
int vbe_find_first_device(struct udevice **devp)
{
uclass_find_first_device(UCLASS_BOOTMETH, devp);
- if (*devp && is_vbe(*devp))
+ if (!*devp || is_vbe(*devp))
return 0;
return vbe_find_next_device(devp);