mirror of
https://github.com/AsahiLinux/u-boot
synced 2024-11-10 23:24:38 +00:00
SPL: fat: Fix spl_parse_image_header() return value handling
The spl_parse_image_header() can return 0 and it is not an error. Only treat non-zero return value as an error. Signed-off-by: Marek Vasut <marex@denx.de> Reviewed-by: Fabio Estevam <fabio.estevam@nxp.com> Reviewed-by: Peng Fan <van.freenix@gmail.com> Reviewed-by: Stefano Babic <sbabic@denx.de> Reviewed-by: Tom Rini <trini@konsulko.com>
This commit is contained in:
parent
5f89a15e16
commit
d550e82e4e
1 changed files with 1 additions and 1 deletions
|
@ -58,7 +58,7 @@ int spl_load_image_fat(struct blk_desc *block_dev,
|
|||
goto end;
|
||||
|
||||
err = spl_parse_image_header(header);
|
||||
if (err <= 0)
|
||||
if (err)
|
||||
goto end;
|
||||
|
||||
err = file_fat_read(filename, (u8 *)spl_image.load_addr, 0);
|
||||
|
|
Loading…
Reference in a new issue