From: tomas.melin@vaisala.com Date: Wed, 16 Nov 2016 11:15:05 +0000 (+0200) Subject: spl: remove redundant call to parse_image_header() X-Git-Url: http://git.dujemihanovic.xyz/img/sics.gif?a=commitdiff_plain;h=f069ded611a4740b9be5dc433f667b136306c53f;p=u-boot.git spl: remove redundant call to parse_image_header() Image header was checked twice. Signed-off-by: Tomas Melin Acked-by: Lokesh Vutla Reviewed-by: Simon Glass --- 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)