aboutsummaryrefslogtreecommitdiffstats
path: root/src/common/l1sap.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/common/l1sap.c')
-rw-r--r--src/common/l1sap.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/common/l1sap.c b/src/common/l1sap.c
index 3a409493..8936674f 100644
--- a/src/common/l1sap.c
+++ b/src/common/l1sap.c
@@ -139,8 +139,7 @@ int add_l1sap_header(struct gsm_bts_trx *trx, struct msgb *rmsg,
gsm_lchan_name(lchan), osmo_hexdump(rmsg->data, rmsg->len));
rmsg->l2h = rmsg->data;
- msgb_push(rmsg, sizeof(*l1sap));
- rmsg->l1h = rmsg->data;
+ rmsg->l1h = msgb_push(rmsg, sizeof(*l1sap));
l1sap = msgb_l1sap_prim(rmsg);
osmo_prim_init(&l1sap->oph, SAP_GSM_PH, PRIM_TCH, PRIM_OP_INDICATION,
rmsg);