summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authortomas.melin@vaisala.com <tomas.melin@vaisala.com>2016-11-16 13:15:05 +0200
committerTom Rini <trini@konsulko.com>2016-11-28 15:10:31 -0500
commitf069ded611a4740b9be5dc433f667b136306c53f (patch)
treed7ed40042b8d08c7a24a40a7d5a8fd8cb7d9f115
parentf72250e7e7e6c31bc21dc177f1ffe1dc8cc88e3f (diff)
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>
-rw-r--r--common/spl/spl_ymodem.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/common/spl/spl_ymodem.c b/common/spl/spl_ymodem.c
index 13e8e51da9..957894dccb 100644
--- a/common/spl/spl_ymodem.c
+++ b/common/spl/spl_ymodem.c
@@ -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)