mkimage: fit: do not overwrite fdt_setprop return value
authorQuentin Schulz <quentin.schulz@cherry.de>
Tue, 23 Sep 2025 10:27:20 +0000 (12:27 +0200)
committerTom Rini <trini@konsulko.com>
Fri, 10 Oct 2025 19:28:36 +0000 (13:28 -0600)
commit6209ce58c3711a5ccdcd080651e604ba8fd3a067
treefb22e368ecc832248e9ff77794f98dffa2f2bfaa
parent8c42f534d7e1956192ef8457fae884469f60ff13
mkimage: fit: do not overwrite fdt_setprop return value

The return code of fdt_setprop is overwritten by the one from
fdt_delprop meaning we could very well have an issue when setting the
property that would be ignored if the deletion of the property that
comes right after passes.

Let's add a separate check for each.

Fixes: 4860ee9b09e0 ("mkimage: allow internalization of data-position")
Signed-off-by: Quentin Schulz <quentin.schulz@cherry.de>
tools/fit_image.c