提交 f069ded6 编写于 作者: T tomas.melin@vaisala.com 提交者: Tom Rini

spl: remove redundant call to parse_image_header()

Image header was checked twice.
Signed-off-by: NTomas Melin <tomas.melin@vaisala.com>
Acked-by: NLokesh Vutla <lokeshvutla@ti.com>
Reviewed-by: NSimon Glass <sjg@chromium.org>
上级 f72250e7
......@@ -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)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册