summaryrefslogtreecommitdiff
path: root/sys
diff options
context:
space:
mode:
authorMark Kettenis <kettenis@cvs.openbsd.org>2021-03-16 22:08:56 +0000
committerMark Kettenis <kettenis@cvs.openbsd.org>2021-03-16 22:08:56 +0000
commit530382c2e1a8d8e19f6568bdc52b81999ff2e7a2 (patch)
tree3686be8e6688063270cc0d48235a115b587e1863 /sys
parent9fb4ee91776c6f44b225daa0cb6ff994326bdf9e (diff)
Node without a "status" property should be considered enabled as well.
Same change made to arm64 a week ago.
Diffstat (limited to 'sys')
-rw-r--r--sys/arch/armv7/stand/efiboot/efiboot.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/arch/armv7/stand/efiboot/efiboot.c b/sys/arch/armv7/stand/efiboot/efiboot.c
index 71d3db1e945..04f791b2d4d 100644
--- a/sys/arch/armv7/stand/efiboot/efiboot.c
+++ b/sys/arch/armv7/stand/efiboot/efiboot.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: efiboot.c,v 1.32 2021/03/16 22:02:27 kettenis Exp $ */
+/* $OpenBSD: efiboot.c,v 1.33 2021/03/16 22:08:55 kettenis Exp $ */
/*
* Copyright (c) 2015 YASUOKA Masahiko <yasuoka@yasuoka.net>
@@ -352,7 +352,7 @@ efi_framebuffer(void)
child = fdt_next_node(child)) {
if (!fdt_node_is_compatible(child, "simple-framebuffer"))
continue;
- if (fdt_node_property(child, "status", &prop) &&
+ if (!fdt_node_property(child, "status", &prop) ||
strcmp(prop, "okay") == 0) {
strlcpy(framebuffer_path, "/chosen/",
sizeof(framebuffer_path));
@@ -366,7 +366,7 @@ efi_framebuffer(void)
child = fdt_next_node(child)) {
if (!fdt_node_is_compatible(child, "simple-framebuffer"))
continue;
- if (fdt_node_property(child, "status", &prop) &&
+ if (!fdt_node_property(child, "status", &prop) ||
strcmp(prop, "okay") == 0) {
strlcpy(framebuffer_path, "/",
sizeof(framebuffer_path));