image: Update zstd to avoid reporting error twice
The zstd implementation prints the error in image_decomp() which is incorrect and does not match other algorithms. Drop this and let the caller report the error. Signed-off-by: Simon Glass <sjg@chromium.org>
This commit is contained in:
@@ -534,12 +534,10 @@ int image_decomp(int comp, ulong load, ulong image_start, int type,
|
|||||||
abuf_init_set(&in, image_buf, image_len);
|
abuf_init_set(&in, image_buf, image_len);
|
||||||
abuf_init_set(&in, load_buf, unc_len);
|
abuf_init_set(&in, load_buf, unc_len);
|
||||||
ret = zstd_decompress(&in, &out);
|
ret = zstd_decompress(&in, &out);
|
||||||
if (ret < 0) {
|
if (ret >= 0) {
|
||||||
printf("ZSTD decompression failed\n");
|
image_len = ret;
|
||||||
return ret;
|
ret = 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
image_len = ret;
|
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
#endif /* CONFIG_ZSTD */
|
#endif /* CONFIG_ZSTD */
|
||||||
|
|||||||
Reference in New Issue
Block a user