Commit f069ded6 authored by's avatar Committed by Tom Rini

spl: remove redundant call to parse_image_header()

Image header was checked twice.
Signed-off-by: default avatarTomas Melin <>
Acked-by: default avatarLokesh Vutla <>
Reviewed-by: default avatarSimon Glass <>
parent f72250e7
......@@ -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)
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment