]> git.proxmox.com Git - qemu.git/blobdiff - device_tree.c
Unbreak SDL on Mac OS X
[qemu.git] / device_tree.c
index 22386829deb6adf9ffa57f4cd865a4028b5e7875..4fc078159b56bdb48fdb0fb90d57d4cdc5383250 100644 (file)
@@ -43,10 +43,6 @@ void *load_device_tree(const char *filename_path, void *load_addr)
 
     /* First allocate space in qemu for device tree */
     dt_file = qemu_mallocz(dt_file_size);
-    if (dt_file == NULL) {
-        printf("Unable to allocate memory in qemu for device tree\n");
-        goto fail;
-    }
 
     dt_file_load_size = load_image(filename_path, dt_file);