diff --git a/srsenb/src/stack/mac/scheduler.cc b/srsenb/src/stack/mac/scheduler.cc index 38921f2c5..4ad2314d8 100644 --- a/srsenb/src/stack/mac/scheduler.cc +++ b/srsenb/src/stack/mac/scheduler.cc @@ -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; }