]> git.sur5r.net Git - u-boot/blobdiff - lib/libfdt/fdt_ro.c
sunxi: Add defconfig for the Sinovoip BPI-M2 board
[u-boot] / lib / libfdt / fdt_ro.c
index 38bfcbdcd53d2b4d150b429e6fe38ddbfb1a91a4..7b0777b67eb3cbb92609ae81366ef4bf66d1944b 100644 (file)
@@ -517,7 +517,7 @@ int fdt_count_strings(const void *fdt, int node, const char *property)
 
        list = fdt_getprop(fdt, node, property, &length);
        if (!list)
-               return -length;
+               return length;
 
        for (i = 0; i < length; i++) {
                int len = strlen(list);