* [Qemu-devel] [PATCH] virtio: Remove malloc failure checks
@ 2009-02-09 9:55 Jan Kiszka
2009-02-16 15:47 ` Anthony Liguori
0 siblings, 1 reply; 2+ messages in thread
From: Jan Kiszka @ 2009-02-09 9:55 UTC (permalink / raw)
To: qemu-devel
No need to check for failing qemu_malloc anymore.
Signed-off-by: Jan Kiszka <jan.kiszka@siemens.com>
Acked-by: Mark McLoughlin <markmc@redhat.com>
---
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);
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [Qemu-devel] [PATCH] virtio: Remove malloc failure checks
2009-02-09 9:55 [Qemu-devel] [PATCH] virtio: Remove malloc failure checks Jan Kiszka
@ 2009-02-16 15:47 ` Anthony Liguori
0 siblings, 0 replies; 2+ messages in thread
From: Anthony Liguori @ 2009-02-16 15:47 UTC (permalink / raw)
To: qemu-devel
Jan Kiszka wrote:
> No need to check for failing qemu_malloc anymore.
>
> Signed-off-by: Jan Kiszka <jan.kiszka@siemens.com>
> Acked-by: Mark McLoughlin <markmc@redhat.com>
>
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);
>
>
>
>
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2009-02-16 15:48 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-02-09 9:55 [Qemu-devel] [PATCH] virtio: Remove malloc failure checks Jan Kiszka
2009-02-16 15:47 ` Anthony Liguori
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).