]> git.proxmox.com Git - qemu.git/blobdiff - target-ppc/helper.c
targets: remove error handling from qemu_malloc() callers (Avi Kivity)
[qemu.git] / target-ppc / helper.c
index 3bd1d45c8ad43d86c10da4c5d0667f17850341be..fc62a635f0e0bfeff540bb136099d6e09154f1ba 100644 (file)
@@ -2761,8 +2761,6 @@ CPUPPCState *cpu_ppc_init (const char *cpu_model)
         return NULL;
 
     env = qemu_mallocz(sizeof(CPUPPCState));
-    if (!env)
-        return NULL;
     cpu_exec_init(env);
     ppc_translate_init();
     env->cpu_model_str = cpu_model;