Skip to content
Commit 73e1e795 authored by Masahiro Yamada's avatar Masahiro Yamada Committed by Simon Glass
Browse files

libfdt: fix error code of fdt_count_strings()



Currently, this function returns a positive value on error,
so we never know whether this function has succeeded or failed.

For example, if the given property is not found, fdt_getprop()
returns -FDT_ERR_NOTFOUND, and then this function inverts it,
i.e., returns FDT_ERR_NOTFOUND (=1).

Signed-off-by: default avatarMasahiro Yamada <yamada.masahiro@socionext.com>
Fixes: bc4147ab ("fdt: Add a function to count strings")
Acked-by: default avatarSimon Glass <sjg@chromium.org>
parent 31f334ab
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment