adding success/error macros in scheduler.cc

This commit is contained in:
yagoda 2020-02-19 11:49:50 +01:00 committed by Francisco Paisana
parent bfa451559b
commit f09c8324eb
1 changed files with 3 additions and 3 deletions

View File

@ -261,7 +261,7 @@ uint32_t sched::get_dl_buffer(uint16_t rnti)
uint32_t ret = 0;
if (ue_db_access(rnti, [&ret](sched_ue& ue) { ret = ue.get_pending_dl_new_data(); })) {
Error("Error calling get_dl_buffer, user not found\n");
ret = -1;
ret = SRSLTE_ERROR;
}
return ret;
}
@ -269,10 +269,10 @@ uint32_t sched::get_dl_buffer(uint16_t rnti)
uint32_t sched::get_ul_buffer(uint16_t rnti)
{
// TODO: Check if correct use of last_tti
uint32_t ret = 0;
uint32_t ret = SRSLTE_SUCCESS;
if (ue_db_access(rnti, [this, &ret](sched_ue& ue) { ret = ue.get_pending_ul_new_data(last_tti); })) {
Error("Error calling get_ul_buffer, user not found\n");
ret = -1;
ret = SRSLTE_ERROR;
}
return ret;
}