From 95c6eed436ab7b0370ac1a4942b10926d3e256ab Mon Sep 17 00:00:00 2001 From: Holger Hans Peter Freyther Date: Sun, 14 Jul 2013 08:01:16 +0200 Subject: 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 --- src/common/oml.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'src/common/oml.c') 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); } -- cgit v1.2.3