]> xenbits.xensource.com Git - qemu-upstream-4.2-testing.git/commit
rtl8139: drop tautologous if (ip) {...} statement
authorStefan Hajnoczi <stefanha@redhat.com>
Wed, 15 Jul 2015 17:16:59 +0000 (18:16 +0100)
committerStefano Stabellini <stefano.stabellini@eu.citrix.com>
Mon, 3 Aug 2015 14:22:44 +0000 (14:22 +0000)
commit132388208dba1c9d7fb071c39d3a5d00fec3eb1d
treeda96f995127256e52c1813c5501790877da6ecfc
parent92c2288071d701e993f0b6cf6572bb95e1209017
rtl8139: drop tautologous if (ip) {...} statement

The previous patch stopped using the ip pointer as an indicator that the
IP header is present.  When we reach the if (ip) {...} statement we know
ip is always non-NULL.

Remove the if statement to reduce nesting.

Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
hw/rtl8139.c