Commit c6ba7bbc4830b9dba2be4ddd6a5d1b2857dbd5ef

Authored by aliguori
1 parent 1f0711e2

virtio: Remove malloc failure checks (Jan Kiszka)

No need to check for failing qemu_malloc anymore.

Signed-off-by: Jan Kiszka <jan.kiszka@siemens.com>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>



git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@6626 c046a42c-6fe2-441c-8c8c-71466251a162
Showing 1 changed file with 0 additions and 4 deletions
hw/virtio-net.c
... ... @@ -598,12 +598,8 @@ PCIDevice *virtio_net_init(PCIBus *bus, NICInfo *nd, int devfn)
598 598 n->promisc = 1; /* for compatibility */
599 599  
600 600 n->mac_table.macs = qemu_mallocz(MAC_TABLE_ENTRIES * ETH_ALEN);
601   - if (!n->mac_table.macs)
602   - return NULL;
603 601  
604 602 n->vlans = qemu_mallocz(MAX_VLAN >> 3);
605   - if (!n->vlans)
606   - return NULL;
607 603  
608 604 register_savevm("virtio-net", virtio_net_id++, VIRTIO_NET_VM_VERSION,
609 605 virtio_net_save, virtio_net_load, n);
... ...