diff options
author | aliguori <aliguori@c046a42c-6fe2-441c-8c8c-71466251a162> | 2009-02-16 15:47:27 +0000 |
---|---|---|
committer | aliguori <aliguori@c046a42c-6fe2-441c-8c8c-71466251a162> | 2009-02-16 15:47:27 +0000 |
commit | c6ba7bbc4830b9dba2be4ddd6a5d1b2857dbd5ef (patch) | |
tree | 85b928acd8584b9ea4899d729956aa46717f32ec /hw/virtio-net.c | |
parent | 1f0711e298ad9fc9c36a4d1c61d36d0dc4433f09 (diff) | |
download | qemu-c6ba7bbc4830b9dba2be4ddd6a5d1b2857dbd5ef.tar.gz qemu-c6ba7bbc4830b9dba2be4ddd6a5d1b2857dbd5ef.tar.bz2 qemu-c6ba7bbc4830b9dba2be4ddd6a5d1b2857dbd5ef.zip |
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
Diffstat (limited to 'hw/virtio-net.c')
-rw-r--r-- | hw/virtio-net.c | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/hw/virtio-net.c b/hw/virtio-net.c index dcfab66510..e83d1019c1 100644 --- a/hw/virtio-net.c +++ b/hw/virtio-net.c @@ -598,12 +598,8 @@ PCIDevice *virtio_net_init(PCIBus *bus, NICInfo *nd, int devfn) n->promisc = 1; /* for compatibility */ n->mac_table.macs = qemu_mallocz(MAC_TABLE_ENTRIES * ETH_ALEN); - if (!n->mac_table.macs) - return NULL; n->vlans = qemu_mallocz(MAX_VLAN >> 3); - if (!n->vlans) - return NULL; register_savevm("virtio-net", virtio_net_id++, VIRTIO_NET_VM_VERSION, virtio_net_save, virtio_net_load, n); |