mirror of
https://github.com/AsahiLinux/u-boot
synced 2024-11-28 15:41:40 +00:00
libfdt: fix error code of fdt_get_string_index()
As mentioned in the comment block in include/libfdt.h,
fdt_get_string_index() is supposed to return a negative value
on error.
Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com>
Fixes: 5094eb408a
("fdt: Add functions to retrieve strings")
Acked-by: Simon Glass <sjg@chromium.org>
This commit is contained in:
parent
965fab1adf
commit
31f334abc5
1 changed files with 1 additions and 1 deletions
|
@ -577,7 +577,7 @@ int fdt_get_string_index(const void *fdt, int node, const char *property,
|
|||
index--;
|
||||
}
|
||||
|
||||
return FDT_ERR_NOTFOUND;
|
||||
return -FDT_ERR_NOTFOUND;
|
||||
}
|
||||
|
||||
int fdt_get_string(const void *fdt, int node, const char *property,
|
||||
|
|
Loading…
Reference in a new issue