]> xenbits.xensource.com Git - qemu-xen-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)
committerAndrew Cooper <andrew.cooper3@citrix.com>
Tue, 10 May 2016 18:11:39 +0000 (19:11 +0100)
commited8122ba5d27663fb40de7d9e0482fcd6f12b363
treeb912c198428a62a47956c8d47239cfc46745f6f1
parente1a6f9038069494d43604eb00e5ff8eb5e83e389
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>
[Backport to qemu-xen-tradition]
Signed-off-by: Andrew Cooper <andrew.cooper3@citrix.com>
hw/rtl8139.c