From 47caa60b45a422b96d480136111f2e2546bf7cc2 Mon Sep 17 00:00:00 2001 From: Pedro Alvarez Date: Mon, 11 Apr 2022 11:45:20 +0100 Subject: [PATCH] lib,rlc_am_nr: fix up comment --- lib/src/rlc/rlc_am_nr.cc | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/lib/src/rlc/rlc_am_nr.cc b/lib/src/rlc/rlc_am_nr.cc index 8f42f2b6c..2161089e1 100644 --- a/lib/src/rlc/rlc_am_nr.cc +++ b/lib/src/rlc/rlc_am_nr.cc @@ -623,7 +623,7 @@ uint32_t rlc_am_nr_tx::build_retx_pdu_with_segmentation(rlc_amd_retx_nr_t& retx, // Store PDU segment info into tx_window RlcDebug("Updating RETX segment info. SN=%d, is_segment=%s", retx.sn, retx.is_segment ? "true" : "false"); if (!retx.is_segment) { - // Retx is already a segment + // Retx is not a segment yet rlc_amd_tx_pdu_nr::pdu_segment seg1 = {}; seg1.so = retx.current_so; seg1.payload_len = retx_pdu_payload_size; @@ -635,7 +635,7 @@ uint32_t rlc_am_nr_tx::build_retx_pdu_with_segmentation(rlc_amd_retx_nr_t& retx, RlcDebug("New segment: SN=%d, SO=%d len=%d", retx.sn, seg1.so, seg1.payload_len); RlcDebug("New segment: SN=%d, SO=%d len=%d", retx.sn, seg2.so, seg2.payload_len); } else { - RlcDebug("Segmenting retx! it is a segment already. SN=%d", retx.sn); + // Retx is already a segment // Find current segment in segment list. std::list::iterator it; for (it = tx_pdu.segment_list.begin(); it != tx_pdu.segment_list.end(); ++it) { @@ -663,9 +663,6 @@ uint32_t rlc_am_nr_tx::build_retx_pdu_with_segmentation(rlc_amd_retx_nr_t& retx, } else { RlcDebug("Could not find segment. SN=%d, SO=%d length=%d", retx.sn, retx.current_so, retx.segment_length); } - for (auto it : tx_pdu.segment_list) { - RlcDebug("Changed segments! SN=%d, SO=%d length=%d", retx.sn, it.so, it.payload_len); - } } // Update retx queue