summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHarald Welte <laforge@gnumonks.org>2017-04-27 12:17:20 +0200
committerHarald Welte <laforge@gnumonks.org>2017-04-27 12:17:20 +0200
commit982c0ce33787443cdef9f342eb5fac30e806cd8e (patch)
tree26c8f2d34775f4176e9a09fd54a2b62425806f2d
parentb30b011e34c1b8faa1e797be5df3ef2177945f48 (diff)
sccp_scoc: don't pass variable as argument if we know it's NULL
xua will always be NULL in one particular switch case of scoc_fsm_conn_pend_out(), so let's use NULL directly rather than obscure it though a variable that might be understood as this being non-NULL in some cases. Change-Id: Id6dc56442441489aefc706bcebc49197ca3dae1e Fixes: coverity CID#166934
-rw-r--r--src/sccp_scoc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/sccp_scoc.c b/src/sccp_scoc.c
index 0eda7ad..5e91ea4 100644
--- a/src/sccp_scoc.c
+++ b/src/sccp_scoc.c
@@ -824,7 +824,7 @@ static void scoc_fsm_conn_pend_out(struct osmo_fsm_inst *fi, uint32_t event, voi
break;
case SCOC_E_CONN_TMR_EXP:
/* N-DISCONNECT.ind to user */
- scu_gen_encode_and_send(conn, event, xua, OSMO_SCU_PRIM_N_DISCONNECT,
+ scu_gen_encode_and_send(conn, event, NULL, OSMO_SCU_PRIM_N_DISCONNECT,
PRIM_OP_INDICATION);
/* below implicitly releases resources + local ref */
osmo_fsm_inst_state_chg(fi, S_IDLE, 0, 0);