From b4832124d64e6680f43e9f8d12a070e3e3780aab Mon Sep 17 00:00:00 2001
From: brobert <brobert@valiha.com>
Date: Tue, 21 May 2024 22:32:34 +0200
Subject: [PATCH] Commenting

---
 openair1/PHY/NR_ESTIMATION/nr_ul_channel_estimation.c | 11 ++---------
 1 file changed, 2 insertions(+), 9 deletions(-)

diff --git a/openair1/PHY/NR_ESTIMATION/nr_ul_channel_estimation.c b/openair1/PHY/NR_ESTIMATION/nr_ul_channel_estimation.c
index e10ee846aa..e28228b8b3 100644
--- a/openair1/PHY/NR_ESTIMATION/nr_ul_channel_estimation.c
+++ b/openair1/PHY/NR_ESTIMATION/nr_ul_channel_estimation.c
@@ -402,9 +402,7 @@ static void inner_channel_estimation(void *arg) {
  delay->est_delay = rdata->delay->est_delay;  // Placeholder for estimated delay update
  nest_count = rdata->nest_count;  // Placeholder for nested count update
  rdata->ul_ls_est = ul_ls_est; // Placeholder for uplink least square estimation
-
- return 0;
-
+ 
 }
 
 int nr_pusch_channel_estimation(PHY_VARS_gNB *gNB,
@@ -502,9 +500,7 @@ int nr_pusch_channel_estimation(PHY_VARS_gNB *gNB,
  for (int aarx=0; aarx<gNB->frame_parms.nb_antennas_rx; aarx++) {
 
    notifiedFIFO_elt_t *req = newNotifiedFIFO_elt(sizeof(puschAntennaProc_t), aarx, &gNB->respPuschAarx, &inner_channel_estimation); // create a job for Tpool
-   puschSymbolProc_t *rdata = (puschSymbolProc_t*)NotifiedFifoData(req); // data for the job
-
-   puschAntennaProc_t *rdata = malloc(sizeof(puschAntennaProc_t));
+   puschAntennaProc_t *rdata = (puschAntennaProc_t*)NotifiedFifoData(req); // data for the job
 
    // Local init in the current loop
    rdata->aarx = aarx;
@@ -551,9 +547,6 @@ int nr_pusch_channel_estimation(PHY_VARS_gNB *gNB,
    delNotifiedFIFO_elt(req);
  }
 
- // Free the allocated memory
- free(rdata);
-
 #ifdef DEBUG_CH
  fclose(debug_ch_est);
 #endif
-- 
2.26.2