From: Markus Armbruster Date: Wed, 4 Feb 2015 10:26:03 +0000 (+0100) Subject: rtl8139: g_malloc() can't fail, bury dead error handling X-Git-Tag: TizenStudio_2.0_p2.3.2~208^2~350^2~13 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=66c5f3e596398a84949fb39e3d7b5f2c0ce3ea0f;p=sdk%2Femulator%2Fqemu.git rtl8139: g_malloc() can't fail, bury dead error handling Signed-off-by: Markus Armbruster Reviewed-by: Eric Blake Reviewed-by: Gonglei Signed-off-by: Michael Tokarev --- diff --git a/hw/net/rtl8139.c b/hw/net/rtl8139.c index b7b87a6..2d1be06 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 "