Explorar o código

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>
tomas.melin@vaisala.com %!s(int64=8) %!d(string=hai) anos
pai
achega
f069ded611
Modificáronse 1 ficheiros con 0 adicións e 1 borrados
  1. 0 1
      common/spl/spl_ymodem.c

+ 0 - 1
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)