From 982c0ce33787443cdef9f342eb5fac30e806cd8e Mon Sep 17 00:00:00 2001 From: Harald Welte Date: Thu, 27 Apr 2017 12:17:20 +0200 Subject: 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 --- src/sccp_scoc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); -- cgit v1.2.3