]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
spl: remove redundant call to parse_image_header()
authortomas.melin@vaisala.com <tomas.melin@vaisala.com>
Wed, 16 Nov 2016 11:15:05 +0000 (13:15 +0200)
committerTom Rini <trini@konsulko.com>
Mon, 28 Nov 2016 20:10:31 +0000 (15:10 -0500)
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>
common/spl/spl_ymodem.c

index 13e8e51da99d5031b01e2b3bdc3474b7e44e587a..957894dccbf22486e32c581a6d9aabd86bb56228 100644 (file)
@@ -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)