]> xenbits.xensource.com Git - qemu-upstream-4.3-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:17:59 +0000 (14:17 +0000)
commitb5b7709ae46e4cb7125546ed08034c12a4452212
tree756a650055e5d096353152dfd4acf7980bf935cb
parent8559a5f216947c1b6ed847b32124a9266b629be1
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