From dbf916d85b9ae834b8f206c7a2d297832846e6e0 Mon Sep 17 00:00:00 2001 From: Aurelien Jarno Date: Sat, 27 Feb 2010 19:47:22 +0100 Subject: powerpc: fix compilation with CONFIG_FDT undefined Signed-off-by: Aurelien Jarno --- hw/ppc440_bamboo.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'hw/ppc440_bamboo.c') diff --git a/hw/ppc440_bamboo.c b/hw/ppc440_bamboo.c index dce3721..40e463b 100644 --- a/hw/ppc440_bamboo.c +++ b/hw/ppc440_bamboo.c @@ -33,22 +33,20 @@ static int bamboo_load_device_tree(target_phys_addr_t addr, target_phys_addr_t initrd_size, const char *kernel_cmdline) { - void *fdt = NULL; + int ret = -1; #ifdef CONFIG_FDT uint32_t mem_reg_property[] = { 0, 0, ramsize }; char *filename; int fdt_size; - int ret; + void *fdt; filename = qemu_find_file(QEMU_FILE_TYPE_BIOS, BINARY_DEVICE_TREE_FILE); if (!filename) { - ret = -1; goto out; } fdt = load_device_tree(filename, &fdt_size); qemu_free(filename); if (fdt == NULL) { - ret = -1; goto out; } -- cgit v1.1