remove braces and reformat code

This commit is contained in:
Andre Puschmann 2020-03-12 15:34:09 +01:00
parent 1b1e7ac1a6
commit 074ffbbb1d
1 changed files with 13 additions and 15 deletions

View File

@ -152,22 +152,20 @@ void sched_ue::set_cfg(const sched_interface::ue_cfg_t& cfg_)
void sched_ue::reset()
{
{
cfg = {};
sr = false;
next_tpc_pusch = 1;
next_tpc_pucch = 1;
buf_mac = 0;
buf_ul = 0;
phy_config_dedicated_enabled = false;
cqi_request_tti = 0;
conres_ce_pending = true;
carriers.clear();
cfg = {};
sr = false;
next_tpc_pusch = 1;
next_tpc_pucch = 1;
buf_mac = 0;
buf_ul = 0;
phy_config_dedicated_enabled = false;
cqi_request_tti = 0;
conres_ce_pending = true;
carriers.clear();
// erase all bearers
for (uint32_t i = 0; i < cfg.ue_bearers.size(); ++i) {
set_bearer_cfg_unlocked(i, {});
}
// erase all bearers
for (uint32_t i = 0; i < cfg.ue_bearers.size(); ++i) {
set_bearer_cfg_unlocked(i, {});
}
}