aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPau Espin Pedrol <pespin@sysmocom.de>2019-10-02 17:53:15 +0200
committerPau Espin Pedrol <pespin@sysmocom.de>2019-10-02 19:01:07 +0200
commit16da58d0c0b662cae3776f752a5e5cfef925d827 (patch)
treecabb675bea4e01d34dd3ecf22e3cdbcc9a376eed
parentccf9498865bff83f15ac4eb3d4cf3cf845d7eac1 (diff)
scheduler: Use OSMO_ASSERT instead of abort
-rw-r--r--src/common/scheduler.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/src/common/scheduler.c b/src/common/scheduler.c
index 52edcbf6..40e0a542 100644
--- a/src/common/scheduler.c
+++ b/src/common/scheduler.c
@@ -29,6 +29,7 @@
#include <osmocom/core/msgb.h>
#include <osmocom/core/talloc.h>
#include <osmocom/core/bits.h>
+#include <osmocom/core/utils.h>
#include <osmocom/gsm/protocol/gsm_08_58.h>
#include <osmocom/gsm/a5.h>
@@ -780,8 +781,7 @@ int trx_sched_ph_data_req(struct l1sched_trx *l1t, struct osmo_phsap_prim *l1sap
"PH-DATA.req: chan_nr=0x%02x link_id=0x%02x\n",
l1sap->u.data.chan_nr, l1sap->u.data.link_id);
- if (!l1sap->oph.msg)
- abort();
+ OSMO_ASSERT(l1sap->oph.msg);
/* ignore empty frame */
if (!msgb_l2len(l1sap->oph.msg)) {
@@ -802,8 +802,7 @@ int trx_sched_tch_req(struct l1sched_trx *l1t, struct osmo_phsap_prim *l1sap)
LOGL1S(DL1P, LOGL_DEBUG, l1t, tn, -1, l1sap->u.tch.fn, "TCH.req: chan_nr=0x%02x\n",
l1sap->u.tch.chan_nr);
- if (!l1sap->oph.msg)
- abort();
+ OSMO_ASSERT(l1sap->oph.msg);
/* ignore empty frame */
if (!msgb_l2len(l1sap->oph.msg)) {