diff options
-rw-r--r-- | src/common/oml.c | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/src/common/oml.c b/src/common/oml.c index ad8ab81b..96d9dd64 100644 --- a/src/common/oml.c +++ b/src/common/oml.c @@ -1093,12 +1093,10 @@ static int down_fom(struct gsm_bts *bts, struct msgb *msg) int ret; if (msgb_l2len(msg) < sizeof(*foh)) { - LOGP(DOML, LOGL_NOTICE, "Formatted O&M message too short\n"); trx = gsm_bts_trx_num(bts, foh->obj_inst.trx_nr); - if (trx) { - oml_tx_failure_event_rep(&trx->mo, OSMO_EVT_MAJ_UKWN_MSG, - "Formatted O&M message too short"); - } + if (trx) + mo = &trx->mo; + oml_tx_failure_event_rep(mo, OSMO_EVT_MAJ_UKWN_MSG, "Formatted O&M message too short"); return -EIO; } |