aboutsummaryrefslogtreecommitdiff
path: root/hw/ppce500_mpc8544ds.c
diff options
context:
space:
mode:
authorAurelien Jarno <aurelien@aurel32.net>2010-02-27 19:47:22 +0100
committerAurelien Jarno <aurelien@aurel32.net>2010-02-27 19:47:22 +0100
commitdbf916d85b9ae834b8f206c7a2d297832846e6e0 (patch)
treea9348d3848b5fb5110ed3730be114128c7c63050 /hw/ppce500_mpc8544ds.c
parent04088adbe0c5adca66adb6022723362ad90ed0fc (diff)
downloadqemu-dbf916d85b9ae834b8f206c7a2d297832846e6e0.zip
qemu-dbf916d85b9ae834b8f206c7a2d297832846e6e0.tar.gz
qemu-dbf916d85b9ae834b8f206c7a2d297832846e6e0.tar.bz2
powerpc: fix compilation with CONFIG_FDT undefined
Signed-off-by: Aurelien Jarno <aurelien@aurel32.net>
Diffstat (limited to 'hw/ppce500_mpc8544ds.c')
-rw-r--r--hw/ppce500_mpc8544ds.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/hw/ppce500_mpc8544ds.c b/hw/ppce500_mpc8544ds.c
index fd428fa..2500817 100644
--- a/hw/ppce500_mpc8544ds.c
+++ b/hw/ppce500_mpc8544ds.c
@@ -78,22 +78,20 @@ static int mpc8544_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, 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;
}