Commit 66c5f3e5 authored by Markus Armbruster's avatar Markus Armbruster Committed by Michael Tokarev
Browse files

rtl8139: g_malloc() can't fail, bury dead error handling

parent 6b0126f9
Loading
Loading
Loading
Loading
+0 −14
Original line number Diff line number Diff line
@@ -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 "