mirror of
https://source.denx.de/u-boot/u-boot.git
synced 2026-06-13 15:03:58 +03: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:
@@ -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,
|
||||
fit_uname_config);
|
||||
if (conf_noffset <= 0)
|
||||
if (conf_noffset < 0)
|
||||
return 0;
|
||||
|
||||
for (idx = 0;
|
||||
|
||||
Reference in New Issue
Block a user