Message ID | 1248412993-16335-1-git-send-email-glommer@redhat.com (mailing list archive) |
---|---|
State | New, archived |
Headers | show |
On 07/24/2009 08:23 AM, Glauber Costa wrote: > it is not needed. > Applied, thanks.
diff --git a/qemu-kvm.c b/qemu-kvm.c index 5e7dc0a..b15d5d6 100644 --- a/qemu-kvm.c +++ b/qemu-kvm.c @@ -2356,13 +2356,7 @@ int kvm_physical_memory_set_dirty_tracking(int enable) if (!kvm_dirty_bitmap) { unsigned bitmap_size = BITMAP_SIZE(phys_ram_size); kvm_dirty_bitmap = qemu_malloc(bitmap_size); - if (kvm_dirty_bitmap == NULL) { - perror("Failed to allocate dirty pages bitmap"); - r=-1; - } - else { - r = kvm_dirty_pages_log_enable_all(kvm_context); - } + r = kvm_dirty_pages_log_enable_all(kvm_context); } } else {
it is not needed. Signed-off-by: Glauber Costa <glommer@redhat.com> --- qemu-kvm.c | 8 +------- 1 files changed, 1 insertions(+), 7 deletions(-)