diff options
author | Markus Armbruster <armbru@redhat.com> | 2015-02-04 11:26:04 +0100 |
---|---|---|
committer | Michael Tokarev <mjt@tls.msk.ru> | 2015-02-10 09:27:20 +0300 |
commit | 9834fe02b00552648d498ca561b51f8ff1d7df31 (patch) | |
tree | 34c4ca7a0d051dfbfe00c97c4061f770e93f8475 /kvm-all.c | |
parent | 66c5f3e596398a84949fb39e3d7b5f2c0ce3ea0f (diff) | |
download | qemu-9834fe02b00552648d498ca561b51f8ff1d7df31.zip qemu-9834fe02b00552648d498ca561b51f8ff1d7df31.tar.gz qemu-9834fe02b00552648d498ca561b51f8ff1d7df31.tar.bz2 |
kvm: g_malloc() can't fail, bury dead error handling
Signed-off-by: Markus Armbruster <armbru@redhat.com>
Reviewed-by: Eric Blake <eblake@redhat.com>
Reviewed-by: Gonglei <arei.gonglei@huawei.com>
Signed-off-by: Michael Tokarev <mjt@tls.msk.ru>
Diffstat (limited to 'kvm-all.c')
-rw-r--r-- | kvm-all.c | 4 |
1 files changed, 0 insertions, 4 deletions
@@ -2070,10 +2070,6 @@ int kvm_insert_breakpoint(CPUState *cpu, target_ulong addr, } bp = g_malloc(sizeof(struct kvm_sw_breakpoint)); - if (!bp) { - return -ENOMEM; - } - bp->pc = addr; bp->use_count = 1; err = kvm_arch_insert_sw_breakpoint(cpu, bp); |