]> xenbits.xensource.com Git - qemu-xen-traditional.git/commit
rtl8139: drop tautologous if (ip) {...} statement
authorStefan Hajnoczi <stefanha@redhat.com>
Wed, 15 Jul 2015 17:16:59 +0000 (18:16 +0100)
committerIan Jackson <Ian.Jackson@eu.citrix.com>
Tue, 10 May 2016 18:16:19 +0000 (19:16 +0100)
commit3a069fe310d32f7a40169a338e12f07f559d904a
tree73c1eafe27c6ae845c150f4f2a1bb5c3217a3243
parent4b87a4d6c8d2c7b53aa208559ceeb42f71f2319f
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