diff options
author | Holger Hans Peter Freyther <holger@moiji-mobile.com> | 2013-07-14 08:01:16 +0200 |
---|---|---|
committer | Holger Hans Peter Freyther <holger@moiji-mobile.com> | 2013-07-14 08:01:16 +0200 |
commit | 2d5575c37ef1d585bb063c11df87a5f1c9c2b6d0 (patch) | |
tree | e412f452a20fd450796326ae790337a50b53d6d8 | |
parent | 59745c8ff66b35dfd4e1fe674c339abf99485ab3 (diff) |
oml: Remove the unused nofh variable from oml_mo_tx_sw_act_rep
The variable was assigned but nothing was done with it, just
remove it for now.
Fixes: Coverity CID 1040758
-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); } |