diff options
Diffstat (limited to 'target-i386')
-rw-r--r-- | target-i386/helper.c | 2 | ||||
-rw-r--r-- | target-i386/kvm.c | 2 |
2 files changed, 0 insertions, 4 deletions
diff --git a/target-i386/helper.c b/target-i386/helper.c index e55de96627..5950c976cc 100644 --- a/target-i386/helper.c +++ b/target-i386/helper.c @@ -1645,8 +1645,6 @@ CPUX86State *cpu_x86_init(const char *cpu_model) static int inited; env = qemu_mallocz(sizeof(CPUX86State)); - if (!env) - return NULL; cpu_exec_init(env); env->cpu_model_str = cpu_model; diff --git a/target-i386/kvm.c b/target-i386/kvm.c index 49766e2579..0834e62853 100644 --- a/target-i386/kvm.c +++ b/target-i386/kvm.c @@ -97,8 +97,6 @@ static int kvm_has_msr_star(CPUState *env) kvm_msr_list = qemu_mallocz(sizeof(msr_list) + msr_list.nmsrs * sizeof(msr_list.indices[0])); - if (kvm_msr_list == NULL) - return 0; kvm_msr_list->nmsrs = msr_list.nmsrs; ret = kvm_ioctl(env->kvm_state, KVM_GET_MSR_INDEX_LIST, kvm_msr_list); |