]> git.kernelconcepts.de Git - karo-tx-uboot.git/blobdiff - common/cmd_ximg.c
SAMSUNG: serial: modify name from s5pc1xx to s5p
[karo-tx-uboot.git] / common / cmd_ximg.c
index 3e5fb44475b60fb98a228a8b40c8a15b3bdb85da..75499b4b84b7421da0502e8d1132ca53a21fd9ef 100644 (file)
@@ -225,20 +225,25 @@ do_imgextract(cmd_tbl_t * cmdtp, int flag, int argc, char *argv[])
                        break;
 #if defined(CONFIG_BZIP2)
                case IH_COMP_BZIP2:
-                       printf ("   Uncompressing part %d ... ", part);
-                       /*
-                        * If we've got less than 4 MB of malloc() space,
-                        * use slower decompression algorithm which requires
-                        * at most 2300 KB of memory.
-                        */
-                       i = BZ2_bzBuffToBuffDecompress
-                               ((char*)ntohl(hdr->ih_load),
-                                &unc_len, (char *)data, len,
-                                CONFIG_SYS_MALLOC_LEN < (4096 * 1024), 0);
-                       if (i != BZ_OK) {
-                               printf ("BUNZIP2 ERROR %d - "
-                                       "image not loaded\n", i);
-                               return 1;
+                       {
+                               int i;
+
+                               printf ("   Uncompressing part %d ... ", part);
+                               /*
+                                * If we've got less than 4 MB of malloc()
+                                * space, use slower decompression algorithm
+                                * which requires at most 2300 KB of memory.
+                                */
+                               i = BZ2_bzBuffToBuffDecompress(
+                                       (char*)ntohl(hdr->ih_load),
+                                       &unc_len, (char *)data, len,
+                                       CONFIG_SYS_MALLOC_LEN < (4096 * 1024),
+                                       0);
+                               if (i != BZ_OK) {
+                                       printf ("BUNZIP2 ERROR %d - "
+                                               "image not loaded\n", i);
+                                       return 1;
+                               }
                        }
                        break;
 #endif /* CONFIG_BZIP2 */