summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorTom Rini <trini@konsulko.com>2020-10-06 20:59:01 +0300
committerTom Rini <trini@konsulko.com>2020-10-06 20:59:01 +0300
commit42378e3cd2432e0353cdcc1789039293e4b46252 (patch)
tree0d7f41a9e50432c32aca3cd7e611cfea70f9efc4 /lib
parent5dcf7cc590b348f1e730ec38242df64c179f10a8 (diff)
parent175e8322bcee64127a24acdac12c54f5ddb95f82 (diff)
downloadu-boot-42378e3cd2432e0353cdcc1789039293e4b46252.tar.xz
Merge tag 'dm-pull-6oct20' of git://git.denx.de/u-boot-dm
bloblist enhancement for alignment Update ofnode/dev_read phandle function sandbox keyboard enhancements and fixes
Diffstat (limited to 'lib')
-rw-r--r--lib/fdtdec.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/fdtdec.c b/lib/fdtdec.c
index b8fc5e2bff..ee1bd41b08 100644
--- a/lib/fdtdec.c
+++ b/lib/fdtdec.c
@@ -746,7 +746,7 @@ int fdtdec_parse_phandle_with_args(const void *blob, int src_node,
if (cells_name || cur_index == index) {
node = fdt_node_offset_by_phandle(blob,
phandle);
- if (!node) {
+ if (node < 0) {
debug("%s: could not find phandle\n",
fdt_get_name(blob, src_node,
NULL));