]> xenbits.xensource.com Git - qemu-upstream-unstable.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 13:52:13 +0000 (13:52 +0000)
commit1f559270d11f62b0d7ea20a741876fb3f2f376af
tree30dce8f7155c9d32312cb4c327591127fe34a486
parent4b47e318c956c6cf7287870bf88cd306c1e4c068
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