mirror of
https://github.com/AsahiLinux/u-boot
synced 2024-11-29 08:01:08 +00:00
spl: remove redundant call to parse_image_header()
Image header was checked twice. Signed-off-by: Tomas Melin <tomas.melin@vaisala.com> Acked-by: Lokesh Vutla <lokeshvutla@ti.com> Reviewed-by: Simon Glass <sjg@chromium.org>
This commit is contained in:
parent
f72250e7e7
commit
f069ded611
1 changed files with 0 additions and 1 deletions
|
@ -109,7 +109,6 @@ static int spl_ymodem_load_image(struct spl_image_info *spl_image,
|
|||
while ((res = xyzModem_stream_read(buf, BUF_SIZE, &err)) > 0)
|
||||
size += res;
|
||||
} else {
|
||||
spl_parse_image_header(spl_image, (struct image_header *)buf);
|
||||
ret = spl_parse_image_header(spl_image,
|
||||
(struct image_header *)buf);
|
||||
if (ret)
|
||||
|
|
Loading…
Reference in a new issue