qemu-devel
[Top][All Lists]
Advanced

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

Re: [Qemu-devel] [PATCH] virtio: Remove malloc failure checks


From: Anthony Liguori
Subject: Re: [Qemu-devel] [PATCH] virtio: Remove malloc failure checks
Date: Mon, 16 Feb 2009 09:47:38 -0600
User-agent: Thunderbird 2.0.0.19 (X11/20090105)

Jan Kiszka wrote:
No need to check for failing qemu_malloc anymore.

Signed-off-by: Jan Kiszka <address@hidden>
Acked-by: Mark McLoughlin <address@hidden>

Applied.  Thanks.

Regards,

Anthony Liguori

---

 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 62153e9..b56c10f 100644
--- a/hw/virtio-net.c
+++ b/hw/virtio-net.c
@@ -598,12 +598,8 @@ void 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;
n->vlans = qemu_mallocz(MAX_VLAN >> 3);
-    if (!n->vlans)
-        return;
register_savevm("virtio-net", virtio_net_id++, VIRTIO_NET_VM_VERSION,
                     virtio_net_save, virtio_net_load, n);








reply via email to

[Prev in Thread] Current Thread [Next in Thread]