Remove unused computation
unav_res is already computed in nr_generate_pdsch(), and then used inside of nr_dlsch_encoding() right after.
This commit is contained in:
@@ -580,7 +580,6 @@ static int do_one_dlsch(unsigned char *input_ptr, PHY_VARS_gNB *gNB, NR_gNB_DLSC
|
|||||||
/* PTRS */
|
/* PTRS */
|
||||||
uint16_t dlPtrsSymPos = 0;
|
uint16_t dlPtrsSymPos = 0;
|
||||||
int n_ptrs = 0;
|
int n_ptrs = 0;
|
||||||
uint32_t ptrsSymbPerSlot = 0;
|
|
||||||
if (rel15->pduBitmap & 0x1) {
|
if (rel15->pduBitmap & 0x1) {
|
||||||
set_ptrs_symb_idx(&dlPtrsSymPos,
|
set_ptrs_symb_idx(&dlPtrsSymPos,
|
||||||
rel15->NrOfSymbols,
|
rel15->NrOfSymbols,
|
||||||
@@ -588,9 +587,7 @@ static int do_one_dlsch(unsigned char *input_ptr, PHY_VARS_gNB *gNB, NR_gNB_DLSC
|
|||||||
1 << rel15->PTRSTimeDensity,
|
1 << rel15->PTRSTimeDensity,
|
||||||
rel15->dlDmrsSymbPos);
|
rel15->dlDmrsSymbPos);
|
||||||
n_ptrs = (rel15->rbSize + rel15->PTRSFreqDensity - 1) / rel15->PTRSFreqDensity;
|
n_ptrs = (rel15->rbSize + rel15->PTRSFreqDensity - 1) / rel15->PTRSFreqDensity;
|
||||||
ptrsSymbPerSlot = get_ptrs_symbols_in_slot(dlPtrsSymPos, rel15->StartSymbolIndex, rel15->NrOfSymbols);
|
|
||||||
}
|
}
|
||||||
harq->unav_res = ptrsSymbPerSlot * n_ptrs;
|
|
||||||
|
|
||||||
#ifdef DEBUG_DLSCH
|
#ifdef DEBUG_DLSCH
|
||||||
printf("PDSCH encoding:\nPayload:\n");
|
printf("PDSCH encoding:\nPayload:\n");
|
||||||
|
|||||||
Reference in New Issue
Block a user