summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>2012-09-05 16:59:45 +0200
committerSascha Hauer <s.hauer@pengutronix.de>2012-09-10 10:05:46 +0200
commit790ca84f39b47c89a215c024dded84db5e97541e (patch)
treecfaeeeb337a89bbd87816c987a5a6f15443606d3
parent0c4ea17225723d3057c7e368e02a294f868dc8aa (diff)
downloadbarebox-790ca84f39b47c89a215c024dded84db5e97541e.tar.gz
barebox-790ca84f39b47c89a215c024dded84db5e97541e.tar.xz
uncompress: drop wrong BUG(uncompress_size)
As uncompress_size is a static and will set if call uncompress_size multiple time. Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
-rw-r--r--lib/uncompress.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/lib/uncompress.c b/lib/uncompress.c
index cdfebe9173..3cf98dd928 100644
--- a/lib/uncompress.c
+++ b/lib/uncompress.c
@@ -80,8 +80,6 @@ int uncompress(unsigned char *inbuf, int len,
int ret;
char *err;
- BUG_ON(uncompress_size);
-
if (inbuf) {
ft = file_detect_type(inbuf);
uncompress_buf = NULL;