diff options
author | tomas.melin@vaisala.com <tomas.melin@vaisala.com> | 2016-11-16 13:15:05 +0200 |
---|---|---|
committer | Tom Rini <trini@konsulko.com> | 2016-11-28 15:10:31 -0500 |
commit | f069ded611a4740b9be5dc433f667b136306c53f (patch) | |
tree | d7ed40042b8d08c7a24a40a7d5a8fd8cb7d9f115 /common/spl/spl_ymodem.c | |
parent | f72250e7e7e6c31bc21dc177f1ffe1dc8cc88e3f (diff) | |
download | u-boot-imx-f069ded611a4740b9be5dc433f667b136306c53f.zip u-boot-imx-f069ded611a4740b9be5dc433f667b136306c53f.tar.gz u-boot-imx-f069ded611a4740b9be5dc433f667b136306c53f.tar.bz2 |
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>
Diffstat (limited to 'common/spl/spl_ymodem.c')
-rw-r--r-- | common/spl/spl_ymodem.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/common/spl/spl_ymodem.c b/common/spl/spl_ymodem.c index 13e8e51..957894d 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) |