mirror of
https://github.com/Fishwaldo/u-boot.git
synced 2025-03-30 11:01:33 +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)
|
while ((res = xyzModem_stream_read(buf, BUF_SIZE, &err)) > 0)
|
||||||
size += res;
|
size += res;
|
||||||
} else {
|
} else {
|
||||||
spl_parse_image_header(spl_image, (struct image_header *)buf);
|
|
||||||
ret = spl_parse_image_header(spl_image,
|
ret = spl_parse_image_header(spl_image,
|
||||||
(struct image_header *)buf);
|
(struct image_header *)buf);
|
||||||
if (ret)
|
if (ret)
|
||||||
|
|
Loading…
Add table
Reference in a new issue