Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1LZ5gw-0003tm-1Z for qemu-devel@nongnu.org; Mon, 16 Feb 2009 10:47:30 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1LZ5gv-0003tC-Cl for qemu-devel@nongnu.org; Mon, 16 Feb 2009 10:47:29 -0500 Received: from [199.232.76.173] (port=34208 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LZ5gv-0003t6-8Q for qemu-devel@nongnu.org; Mon, 16 Feb 2009 10:47:29 -0500 Received: from savannah.gnu.org ([199.232.41.3]:40942 helo=sv.gnu.org) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1LZ5gv-00069Z-0X for qemu-devel@nongnu.org; Mon, 16 Feb 2009 10:47:29 -0500 Received: from cvs.savannah.gnu.org ([199.232.41.69]) by sv.gnu.org with esmtp (Exim 4.63) (envelope-from ) id 1LZ5gu-00079D-8Q for qemu-devel@nongnu.org; Mon, 16 Feb 2009 15:47:28 +0000 Received: from aliguori by cvs.savannah.gnu.org with local (Exim 4.63) (envelope-from ) id 1LZ5gt-000798-WB for qemu-devel@nongnu.org; Mon, 16 Feb 2009 15:47:28 +0000 MIME-Version: 1.0 Errors-To: aliguori Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit From: Anthony Liguori Message-Id: Date: Mon, 16 Feb 2009 15:47:28 +0000 Subject: [Qemu-devel] [6626] virtio: Remove malloc failure checks (Jan Kiszka) Reply-To: qemu-devel@nongnu.org List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Revision: 6626 http://svn.sv.gnu.org/viewvc/?view=rev&root=qemu&revision=6626 Author: aliguori Date: 2009-02-16 15:47:27 +0000 (Mon, 16 Feb 2009) Log Message: ----------- virtio: Remove malloc failure checks (Jan Kiszka) No need to check for failing qemu_malloc anymore. Signed-off-by: Jan Kiszka Signed-off-by: Anthony Liguori Modified Paths: -------------- trunk/hw/virtio-net.c Modified: trunk/hw/virtio-net.c =================================================================== --- trunk/hw/virtio-net.c 2009-02-16 15:36:08 UTC (rev 6625) +++ trunk/hw/virtio-net.c 2009-02-16 15:47:27 UTC (rev 6626) @@ -598,12 +598,8 @@ 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);