X-Git-Url: http://git.ipfire.org/?a=blobdiff_plain;f=common%2Fimage-fdt.c;h=01186aeac7a433a35f888b3fa227712fb6dbab80;hb=e1d7ed34015a78788ada8a79d23a2af22fe1f451;hp=94089b2215ca4b37be1a16b27417da953d804c4b;hpb=c8087f67f148e8e732e8d456d93cc709116ce0b5;p=thirdparty%2Fu-boot.git diff --git a/common/image-fdt.c b/common/image-fdt.c index 94089b2215c..01186aeac7a 100644 --- a/common/image-fdt.c +++ b/common/image-fdt.c @@ -71,10 +71,10 @@ static const image_header_t *image_get_fdt(ulong fdt_addr) static void boot_fdt_reserve_region(struct lmb *lmb, uint64_t addr, uint64_t size) { - int ret; + long ret; ret = lmb_reserve(lmb, addr, size); - if (!ret) { + if (ret >= 0) { debug(" reserving fdt memory region: addr=%llx size=%llx\n", (unsigned long long)addr, (unsigned long long)size); } else {