]> xenbits.xensource.com Git - qemu-upstream-4.4-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:12:15 +0000 (14:12 +0000)
commit7178538ed48a605688138794cdd5e789e8a9c1a5
tree8b54ba5ba5d7d924009bb2037b084a5febecd367
parent293bbdf5ceea9b7aa8fa08bc763c841fbdef5a89
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>
Signed-off-by: Stefano Stabellini <stefano.stabellini@eu.citrix.com>
hw/net/rtl8139.c