From a11d605f8df2cbe50f64f5d404705179a8b03dbb Mon Sep 17 00:00:00 2001 From: Lionel Gauthier Date: Thu, 20 Nov 2014 14:42:51 +0000 Subject: [PATCH] Clean git-svn-id: http://svn.eurecom.fr/openair4G/trunk@6051 818b1a75-f10b-46b9-bf7c-635c3b92a50f --- .../RLC/UM_v9.3.0/rlc_um_control_primitives.c | 27 ++----------------- 1 file changed, 2 insertions(+), 25 deletions(-) diff --git a/openair2/LAYER2/RLC/UM_v9.3.0/rlc_um_control_primitives.c b/openair2/LAYER2/RLC/UM_v9.3.0/rlc_um_control_primitives.c index e7e4df8e50..953c225b05 100755 --- a/openair2/LAYER2/RLC/UM_v9.3.0/rlc_um_control_primitives.c +++ b/openair2/LAYER2/RLC/UM_v9.3.0/rlc_um_control_primitives.c @@ -243,9 +243,6 @@ rlc_um_init (rlc_um_entity_t * const rlc_pP) list_init (&rlc_pP->input_sdus, NULL); rlc_pP->protocol_state = RLC_NULL_STATE; - //rlc_pP->nb_sdu = 0; - //rlc_pP->next_sdu_index = 0; - //rlc_pP->current_sdu_index = 0; //rlc_pP->vt_us = 0; @@ -262,16 +259,7 @@ rlc_um_init (rlc_um_entity_t * const rlc_pP) rlc_pP->tx_sn_length = 10; rlc_pP->tx_header_min_length_in_bytes = 2; - // SPARE : not 3GPP -/*#ifdef JUMBO_FRAME - rlc_pP->size_input_sdus_buffer =1024; -#else - rlc_pP->size_input_sdus_buffer =128; -#endif*/ - - /*if ((rlc_pP->input_sdus == NULL) && (rlc_pP->size_input_sdus_buffer > 0)) { - rlc_pP->input_sdus = calloc(1 , rlc_pP->size_input_sdus_buffer * sizeof (void *)); - }*/ + if (rlc_pP->dar_buffer == NULL) { rlc_pP->dar_buffer = calloc (1, 1024 * sizeof (void *)); } @@ -286,9 +274,7 @@ rlc_um_reset_state_variables (rlc_um_entity_t * const rlc_pP) { //----------------------------------------------------------------------------- rlc_pP->buffer_occupancy = 0; - //rlc_pP->nb_sdu = 0; - //rlc_pP->next_sdu_index = 0; - //rlc_pP->current_sdu_index = 0; + // TX SIDE rlc_pP->vt_us = 0; @@ -307,15 +293,6 @@ rlc_um_cleanup (rlc_um_entity_t * const rlc_pP) list_free (&rlc_pP->pdus_to_mac_layer); list_free (&rlc_pP->input_sdus); - /*if (rlc_pP->input_sdus) { - for (index = 0; index < rlc_pP->size_input_sdus_buffer; index++) { - if (rlc_pP->input_sdus[index]) { - free_mem_block (rlc_pP->input_sdus[index]); - } - } - free (rlc_pP->input_sdus); - rlc_pP->input_sdus = NULL; - }*/ // RX SIDE list_free (&rlc_pP->pdus_from_mac_layer); if ((rlc_pP->output_sdu_in_construction)) {