aboutsummaryrefslogtreecommitdiff
path: root/net/colo-compare.c
diff options
context:
space:
mode:
authorZhang Chen <chen.zhang@intel.com>2019-01-14 22:05:10 +0800
committerJason Wang <jasowang@redhat.com>2019-03-05 11:27:40 +0800
commit6d3aaa5b255ffc55a0561d359159fdaaccf09b31 (patch)
treeaa81df4e28caa7c8e20a8712751ee69cd7e93140 /net/colo-compare.c
parentb6179aaff961627fcb59d7b234297966b81ac726 (diff)
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/colo-compare.c')
-rw-r--r--net/colo-compare.c8
1 files changed, 0 insertions, 8 deletions
diff --git a/net/colo-compare.c b/net/colo-compare.c
index 3e515f3023..bf10526f05 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)) {