lte,enb,rlc: change new_tx and prio_tx variable names to snake_case and ensure they are zero initialized

This commit is contained in:
Francisco 2021-10-20 14:46:46 +01:00 committed by Francisco Paisana
parent 7aa5f731ce
commit d60950d0f3
2 changed files with 7 additions and 7 deletions

View File

@ -254,7 +254,7 @@ void rlc::get_buffer_state(uint32_t lcid, uint32_t& tx_queue, uint32_t& prio_tx_
uint32_t rlc::get_buffer_state(uint32_t lcid)
{
uint32_t tx_queue, prio_tx_queue;
uint32_t tx_queue = 0, prio_tx_queue = 0;
get_buffer_state(lcid, tx_queue, prio_tx_queue);
return tx_queue + prio_tx_queue;
}

View File

@ -441,9 +441,9 @@ void rlc_am_lte::rlc_am_lte_tx::check_sn_reached_max_retx(uint32_t sn)
uint32_t rlc_am_lte::rlc_am_lte_tx::get_buffer_state()
{
uint32_t newtx = 0, priotx = 0;
get_buffer_state(newtx, priotx);
return newtx + priotx;
uint32_t new_tx_queue = 0, prio_tx_queue = 0;
get_buffer_state(new_tx_queue, prio_tx_queue);
return new_tx_queue + prio_tx_queue;
}
void rlc_am_lte::rlc_am_lte_tx::get_buffer_state(uint32_t& n_bytes_newtx, uint32_t& n_bytes_prio)
@ -625,9 +625,9 @@ void rlc_am_lte::rlc_am_lte_tx::timer_expired(uint32_t timeout_id)
lock.unlock();
if (bsr_callback) {
uint32_t newtx = 0, priotx = 0;
get_buffer_state(newtx, priotx);
bsr_callback(parent->lcid, newtx, priotx);
uint32_t new_tx_queue = 0, prio_tx_queue = 0;
get_buffer_state(new_tx_queue, prio_tx_queue);
bsr_callback(parent->lcid, new_tx_queue, prio_tx_queue);
}
}