From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:45884) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YG9QX-000775-2o for qemu-devel@nongnu.org; Tue, 27 Jan 2015 11:55:50 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YG99v-0002gN-Dh for qemu-devel@nongnu.org; Tue, 27 Jan 2015 11:42:10 -0500 Received: from mx1.redhat.com ([209.132.183.28]:39468) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YG99v-0002g4-4y for qemu-devel@nongnu.org; Tue, 27 Jan 2015 11:38:35 -0500 Received: from int-mx13.intmail.prod.int.phx2.redhat.com (int-mx13.intmail.prod.int.phx2.redhat.com [10.5.11.26]) by mx1.redhat.com (8.14.4/8.14.4) with ESMTP id t0RGcY0i013685 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=FAIL) for ; Tue, 27 Jan 2015 11:38:34 -0500 From: Markus Armbruster Date: Tue, 27 Jan 2015 17:38:27 +0100 Message-Id: <1422376711-31648-3-git-send-email-armbru@redhat.com> In-Reply-To: <1422376711-31648-1-git-send-email-armbru@redhat.com> References: <1422376711-31648-1-git-send-email-armbru@redhat.com> Subject: [Qemu-devel] [PATCH 2/6] rtl8139: g_malloc() can't fail, bury dead error handling List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: qemu-trivial@redhat.com Signed-off-by: Markus Armbruster --- hw/net/rtl8139.c | 14 -------------- 1 file changed, 14 deletions(-) diff --git a/hw/net/rtl8139.c b/hw/net/rtl8139.c index 6fa9e0a..b55e438 100644 --- a/hw/net/rtl8139.c +++ b/hw/net/rtl8139.c @@ -2075,20 +2075,6 @@ static int rtl8139_cplus_transmit_one(RTL8139State *s) "length to %d\n", txsize); } - if (!s->cplus_txbuffer) - { - /* out of memory */ - - DPRINTF("+++ C+ mode transmiter failed to reallocate %d bytes\n", - s->cplus_txbuffer_len); - - /* update tally counter */ - ++s->tally_counters.TxERR; - ++s->tally_counters.TxAbt; - - return 0; - } - /* append more data to the packet */ DPRINTF("+++ C+ mode transmit reading %d bytes from host memory at " -- 1.9.3