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-16 18:36:44 +0200 |
commit | 95c6eed436ab7b0370ac1a4942b10926d3e256ab (patch) | |
tree | fde7bcbabbd360b3257eb93122d952b16aafc33b /src/common | |
parent | 612f387fc93818877063dbd221803c9528f3413b (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
Diffstat (limited to 'src/common')
-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); } |