diff options
Diffstat (limited to 'src/common/oml.c')
-rw-r--r-- | src/common/oml.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/src/common/oml.c b/src/common/oml.c index 028a7928..de7382b8 100644 --- a/src/common/oml.c +++ b/src/common/oml.c @@ -353,7 +353,6 @@ int oml_fom_ack_nack(struct msgb *old_msg, uint8_t cause) int oml_mo_tx_sw_act_rep(struct gsm_abis_mo *mo) { struct msgb *nmsg; - struct abis_om_fom_hdr *nofh; LOGP(DOML, LOGL_INFO, "%s Tx SW ACT REP\n", gsm_abis_mo_name(mo)); @@ -361,8 +360,7 @@ int oml_mo_tx_sw_act_rep(struct gsm_abis_mo *mo) if (!nmsg) return -ENOMEM; - nofh = (struct abis_om_fom_hdr *) msgb_put(nmsg, sizeof(*nofh)); - + msgb_put(nmsg, sizeof(struct abis_om_fom_hdr)); return oml_mo_send_msg(mo, nmsg, NM_MT_SW_ACTIVATED_REP); } |