]> git.kernelconcepts.de Git - karo-tx-uboot.git/commit
libfdt: fix error code of fdt_get_string_index()
authorMasahiro Yamada <yamada.masahiro@socionext.com>
Tue, 14 Jul 2015 16:08:43 +0000 (01:08 +0900)
committerLothar Waßmann <LW@KARO-electronics.de>
Wed, 9 Sep 2015 11:34:20 +0000 (13:34 +0200)
commit82f48e7261542dee716121d02f8b0d70c54cf862
tree2830c749475a93d13a5c90ceea6c8db87f15661a
parenta00c339361917c55896d2764dab0e756fc049887
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: 5094eb408a5d ("fdt: Add functions to retrieve strings")
Acked-by: Simon Glass <sjg@chromium.org>
lib/libfdt/fdt_ro.c