commit | e514fc7e1231c6d95011e448e6c626f2bb6f3cd8 | [log] [tgz] |
---|---|---|
author | Paolo Bonzini <pbonzini@redhat.com> | Thu Jan 26 11:10:10 2017 +0100 |
committer | Jason Wang <jasowang@redhat.com> | Wed Feb 15 11:18:57 2017 +0800 |
tree | 3b76f8f974e80084a2f9eb6fc22868b761c0c040 | |
parent | a2dbe1356faff3cb613ae83b77c484a203be5f15 [diff] |
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>