summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/gsm/lapd_core.c4
-rw-r--r--src/gsm/lapdm.c5
2 files changed, 1 insertions, 8 deletions
diff --git a/src/gsm/lapd_core.c b/src/gsm/lapd_core.c
index 48476266..5d871546 100644
--- a/src/gsm/lapd_core.c
+++ b/src/gsm/lapd_core.c
@@ -379,9 +379,7 @@ static int send_dl_l3(uint8_t prim, uint8_t op, struct lapd_msg_ctx *lctx,
static inline int send_dl_simple(uint8_t prim, uint8_t op,
struct lapd_msg_ctx *lctx)
{
- struct msgb *msg = lapd_msgb_alloc(0, "DUMMY");
-
- return send_dl_l3(prim, op, lctx, msg);
+ return send_dl_l3(prim, op, lctx, NULL);
}
/* send MDL-ERROR INDICATION */
diff --git a/src/gsm/lapdm.c b/src/gsm/lapdm.c
index 7ca2b3e3..80c0d178 100644
--- a/src/gsm/lapdm.c
+++ b/src/gsm/lapdm.c
@@ -414,11 +414,6 @@ static int send_rslms_dlsap(struct osmo_dlsap_prim *dp,
switch (OSMO_PRIM_HDR(&dp->oph)) {
case OSMO_PRIM(PRIM_DL_EST, PRIM_OP_INDICATION):
- if (dp->oph.msg && dp->oph.msg->len == 0) {
- /* omit L3 info by freeing message */
- msgb_free(dp->oph.msg);
- dp->oph.msg = NULL;
- }
rll_msg = RSL_MT_EST_IND;
break;
case OSMO_PRIM(PRIM_DL_EST, PRIM_OP_CONFIRM):