mirror of
https://source.denx.de/u-boot/u-boot.git
synced 2025-11-24 12:11:28 +01:00
spl: Correct checking of configuration node
Per the fit_conf_get_node() API doc, it returns configuration node offset when found (>=0). Signed-off-by: Bin Meng <bmeng@tinylab.org> Reviewed-by: Simon Glass <sjg@chromium.org>
This commit is contained in:
parent
33c63cea5e
commit
1310ad3aac
@ -331,7 +331,7 @@ static int spl_load_fit_image(struct spl_image_info *spl_image,
|
|||||||
|
|
||||||
conf_noffset = fit_conf_get_node((const void *)header,
|
conf_noffset = fit_conf_get_node((const void *)header,
|
||||||
fit_uname_config);
|
fit_uname_config);
|
||||||
if (conf_noffset <= 0)
|
if (conf_noffset < 0)
|
||||||
return 0;
|
return 0;
|
||||||
|
|
||||||
for (idx = 0;
|
for (idx = 0;
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user