]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
ppc: Fix ftd_blob variable init when processing raw blob
authorMarian Balakowicz <m8@semihalf.com>
Fri, 11 Apr 2008 09:07:43 +0000 (11:07 +0200)
committerWolfgang Denk <wd@denx.de>
Fri, 18 Apr 2008 06:58:22 +0000 (23:58 -0700)
Set fdt_blob variable before its value is printed out.

Signed-off-by: Marian Balakowicz <m8@semihalf.com>
lib_ppc/bootm.c

index 29016075d78222df623510f2c09992e2e8a825bd..b24a0640c775d4f29d534688e7b71bb0e63d24cf 100644 (file)
@@ -626,9 +626,9 @@ static int boot_get_fdt (cmd_tbl_t *cmdtp, int flag, int argc, char *argv[],
                                /*
                                 * FDT blob
                                 */
+                               fdt_blob = (char *)fdt_addr;
                                debug ("*  fdt: raw FDT blob\n");
                                printf ("## Flattened Device Tree blob at %08lx\n", fdt_blob);
-                               fdt_blob = (char *)fdt_addr;
                        }
                        break;
                default: