]> git.dujemihanovic.xyz Git - u-boot.git/commit
lmb: Fix lmb_add_region_flags() return codes and testing
authorIlias Apalodimas <ilias.apalodimas@linaro.org>
Wed, 23 Oct 2024 15:22:00 +0000 (18:22 +0300)
committerTom Rini <trini@konsulko.com>
Tue, 29 Oct 2024 22:17:47 +0000 (16:17 -0600)
commit0f57b009e649e9d140b7f662599a5ace506e2418
tree22083d34e326c8312b87964726d00536f418c3bc
parent92e75ee47f12131306b6a0c501bf8b7cedfe3818
lmb: Fix lmb_add_region_flags() return codes and testing

The function description says this should return 0 or -1 on failures.
When regions coalesce though this returns the number of coalescedregions
which is confusing and requires special handling of the return code.
On top of that no one is using the number of coalesced regions.

So let's just return 0 on success and adjust our selftests accordingly

Signed-off-by: Ilias Apalodimas <ilias.apalodimas@linaro.org>
Reviewed-by: Caleb Connolly <caleb.connolly@linaro.org>
boot/image-fdt.c
lib/lmb.c
test/lib/lmb.c