]> git.proxmox.com Git - mirror_qemu.git/commitdiff
net/colo-compare.c: Remove duplicated code
authorZhang Chen <chen.zhang@intel.com>
Mon, 14 Jan 2019 14:05:10 +0000 (22:05 +0800)
committerJason Wang <jasowang@redhat.com>
Tue, 5 Mar 2019 03:27:40 +0000 (11:27 +0800)
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>
net/colo-compare.c

index 3e515f3023ac19f3d1756bbd5a876eeeace57222..bf10526f054bea922dee910b40ee8f1aa2de8df0 100644 (file)
@@ -286,14 +286,6 @@ static bool colo_mark_tcp_pkt(Packet *ppkt, Packet *spkt,
 {
     *mark = 0;
 
-    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;
-        }
-    }
     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,