diff options
author | Zhang Chen <chen.zhang@intel.com> | 2019-01-14 22:05:10 +0800 |
---|---|---|
committer | Jason Wang <jasowang@redhat.com> | 2019-03-05 11:27:40 +0800 |
commit | 6d3aaa5b255ffc55a0561d359159fdaaccf09b31 (patch) | |
tree | aa81df4e28caa7c8e20a8712751ee69cd7e93140 /net | |
parent | b6179aaff961627fcb59d7b234297966b81ac726 (diff) | |
download | qemu-6d3aaa5b255ffc55a0561d359159fdaaccf09b31.zip qemu-6d3aaa5b255ffc55a0561d359159fdaaccf09b31.tar.gz qemu-6d3aaa5b255ffc55a0561d359159fdaaccf09b31.tar.bz2 |
net/colo-compare.c: Remove duplicated code
Fix duplicated code:
https://bugs.launchpad.net/qemu/+bug/1811499
Reviewed-by: Thomas Huth <thuth@redhat.com>
Reviewed-by: Philippe Mathieu-Daudé <philmd@redhat.com>
Signed-off-by: Zhang Chen <chen.zhang@intel.com>
Signed-off-by: Jason Wang <jasowang@redhat.com>
Diffstat (limited to 'net')
-rw-r--r-- | net/colo-compare.c | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/net/colo-compare.c b/net/colo-compare.c index 3e515f3..bf10526 100644 --- a/net/colo-compare.c +++ b/net/colo-compare.c @@ -294,14 +294,6 @@ static bool colo_mark_tcp_pkt(Packet *ppkt, Packet *spkt, return true; } } - if (ppkt->tcp_seq == spkt->tcp_seq && ppkt->seq_end == spkt->seq_end) { - if (colo_compare_packet_payload(ppkt, spkt, - ppkt->header_size, spkt->header_size, - ppkt->payload_size)) { - *mark = COLO_COMPARE_FREE_SECONDARY | COLO_COMPARE_FREE_PRIMARY; - return true; - } - } /* one part of secondary packet payload still need to be compared */ if (!after(ppkt->seq_end, spkt->seq_end)) { |