mirror of https://github.com/PentHertz/srsLTE.git
Removed redundant condition
This commit is contained in:
parent
8661503d59
commit
8eab3b4688
|
@ -301,20 +301,18 @@ private:
|
||||||
harq_entity->pcap->write_dl_crnti(payload_buffer_ptr, cur_grant.n_bytes[tid], cur_grant.rnti, ack,
|
harq_entity->pcap->write_dl_crnti(payload_buffer_ptr, cur_grant.n_bytes[tid], cur_grant.rnti, ack,
|
||||||
cur_grant.tti);
|
cur_grant.tti);
|
||||||
}
|
}
|
||||||
if (ack) {
|
if (cur_grant.rnti_type == SRSLTE_RNTI_TEMP) {
|
||||||
if (cur_grant.rnti_type == SRSLTE_RNTI_TEMP) {
|
Debug("Delivering PDU=%d bytes to Dissassemble and Demux unit (Temporal C-RNTI)\n",
|
||||||
Debug("Delivering PDU=%d bytes to Dissassemble and Demux unit (Temporal C-RNTI)\n",
|
cur_grant.n_bytes[tid]);
|
||||||
cur_grant.n_bytes[tid]);
|
harq_entity->demux_unit->push_pdu_temp_crnti(payload_buffer_ptr, cur_grant.n_bytes[tid]);
|
||||||
harq_entity->demux_unit->push_pdu_temp_crnti(payload_buffer_ptr, cur_grant.n_bytes[tid]);
|
} else {
|
||||||
} else {
|
Debug("Delivering PDU=%d bytes to Dissassemble and Demux unit\n", cur_grant.n_bytes[tid]);
|
||||||
Debug("Delivering PDU=%d bytes to Dissassemble and Demux unit\n", cur_grant.n_bytes[tid]);
|
harq_entity->demux_unit->push_pdu(pid * SRSLTE_MAX_TB + tid, payload_buffer_ptr, cur_grant.n_bytes[tid],
|
||||||
harq_entity->demux_unit->push_pdu(pid * SRSLTE_MAX_TB + tid, payload_buffer_ptr, cur_grant.n_bytes[tid],
|
cur_grant.tti);
|
||||||
cur_grant.tti);
|
|
||||||
|
|
||||||
// Compute average number of retransmissions per packet
|
// Compute average number of retransmissions per packet
|
||||||
harq_entity->average_retx = SRSLTE_VEC_CMA((float) n_retx, harq_entity->average_retx,
|
harq_entity->average_retx = SRSLTE_VEC_CMA((float) n_retx, harq_entity->average_retx,
|
||||||
harq_entity->nof_pkts++);
|
harq_entity->nof_pkts++);
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
|
|
Loading…
Reference in New Issue