summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorTom Rini <trini@konsulko.com>2020-09-17 09:53:57 -0400
committerTom Rini <trini@konsulko.com>2020-09-17 09:53:57 -0400
commit9de3126e80cdac7ee15b6671065a952184533dda (patch)
tree202c407e31e0f7d60c508cdaadb4b2e6af764aae /lib
parentb01ba776c9ae138732d85a543878d8456e0b4b30 (diff)
parentc6963fb88ffb60e42137dc60100ee1a7c6f91beb (diff)
Merge branch '2020-09-16-assorted-fixes'
- Assorted bug fixes
Diffstat (limited to 'lib')
-rw-r--r--lib/fdtdec.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/fdtdec.c b/lib/fdtdec.c
index d3b22ec323..5f41f58a63 100644
--- a/lib/fdtdec.c
+++ b/lib/fdtdec.c
@@ -1101,7 +1101,7 @@ int fdtdec_setup_memory_banksize(void)
if (ret < 0) {
reg = 0;
mem = get_next_memory_node(mem);
- if (ofnode_valid(mem))
+ if (!ofnode_valid(mem))
break;
ret = ofnode_read_resource(mem, reg++, &res);
@@ -1146,7 +1146,7 @@ int fdtdec_setup_mem_size_base_lowest(void)
if (ret < 0) {
reg = 0;
mem = get_next_memory_node(mem);
- if (ofnode_valid(mem))
+ if (!ofnode_valid(mem))
break;
ret = ofnode_read_resource(mem, reg++, &res);