[PATCH 3/3] device-assignment: remove qemu_mallocz() test

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Signed-off-by: Juan Quintela <quintela@xxxxxxxxxx>
---
 hw/device-assignment.c |    5 -----
 1 files changed, 0 insertions(+), 5 deletions(-)

diff --git a/hw/device-assignment.c b/hw/device-assignment.c
index dc70b80..968a8d9 100644
--- a/hw/device-assignment.c
+++ b/hw/device-assignment.c
@@ -319,11 +319,6 @@ static void assigned_dev_ioport_map(PCIDevice *pci_dev, int region_num,
 	struct ioperm_data *data;

 	data = qemu_mallocz(sizeof(struct ioperm_data));
-	if (data == NULL) {
-	    fprintf(stderr, "%s: Out of memory\n", __func__);
-	    exit(1);
-	}
-
 	data->start_port = region->u.r_baseport;
 	data->num = region->r_size;
 	data->turn_on = 1;
-- 
1.7.4

--
To unsubscribe from this list: send the line "unsubscribe kvm" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [KVM ARM]     [KVM ia64]     [KVM ppc]     [Virtualization Tools]     [Spice Development]     [Libvirt]     [Libvirt Users]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite Questions]     [Linux Kernel]     [Linux SCSI]     [XFree86]
  Powered by Linux