[PATCH] perf intel-pt: Fix variable duplicate check

liujing posted 1 patch 2 days, 14 hours ago
[PATCH] perf intel-pt: Fix variable duplicate check
Posted by liujing 2 days, 14 hours ago
Identical condition 'data->from_mtc', second condition is always false,
so duplicate checks are eliminated.

Signed-off-by: liujing <liujing@cmss.chinamobile.com>

diff --git a/tools/perf/util/intel-pt-decoder/intel-pt-decoder.c b/tools/perf/util/intel-pt-decoder/intel-pt-decoder.c
index e733f6b1f7ac..9fde2c49f8b5 100644
--- a/tools/perf/util/intel-pt-decoder/intel-pt-decoder.c
+++ b/tools/perf/util/intel-pt-decoder/intel-pt-decoder.c
@@ -883,7 +883,7 @@ static int intel_pt_calc_cyc_cb(struct intel_pt_pkt_info *pkt_info)
 			return 1;
 		timestamp = pkt_info->packet.payload |
 			    (data->timestamp & (0xffULL << 56));
-		if (data->from_mtc && timestamp < data->timestamp &&
+		if (timestamp < data->timestamp &&
 		    data->timestamp - timestamp < decoder->tsc_slip)
 			return 1;
 		if (timestamp < data->timestamp)
-- 
2.27.0