net: e1000e: fix dead code in e1000e_write_packet_to_guest
commite514fc7e1231c6d95011e448e6c626f2bb6f3cd8
authorPaolo Bonzini <pbonzini@redhat.com>
Thu, 26 Jan 2017 10:10:10 +0000 (26 11:10 +0100)
committerJason Wang <jasowang@redhat.com>
Wed, 15 Feb 2017 03:18:57 +0000 (15 11:18 +0800)
tree3b76f8f974e80084a2f9eb6fc22868b761c0c040
parenta2dbe1356faff3cb613ae83b77c484a203be5f15
net: e1000e: fix dead code in e1000e_write_packet_to_guest

Because is_first is declared inside a loop, it is always true.  The store
is dead, and so is the "else" branch of "if (is_first)".  is_last is
okay though.

Reported by Coverity.

Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Reviewed-by: Dmitry Fleytman <dmitry@daynix.com>
Signed-off-by: Jason Wang <jasowang@redhat.com>
hw/net/e1000e_core.c