vlr: remove unused parameter 'log_level' of auth_fsm_start()

We unconditionally use logging level of the parent FSM anyway.
All callers of auth_fsm_start() always pass fi->log_level.

Change-Id: If2fdf2564eb56d3d94ec3800bdcb0aabcad4e48d
changes/11/17011/2
Vadim Yanitskiy 3 years ago committed by fixeria
parent fc2b019cd8
commit 3daf0c2786
  1. 2
      src/libvlr/vlr_access_req_fsm.c
  2. 1
      src/libvlr/vlr_auth_fsm.c
  3. 1
      src/libvlr/vlr_auth_fsm.h
  4. 2
      src/libvlr/vlr_lu_fsm.c

@ -338,7 +338,7 @@ static void proc_arq_vlr_fn_post_imsi(struct osmo_fsm_inst *fi)
if (is_auth_required(par)) {
osmo_fsm_inst_state_chg(fi, PR_ARQ_S_WAIT_AUTH,
0, 0);
vsub->auth_fsm = auth_fsm_start(vsub, fi->log_level, fi,
vsub->auth_fsm = auth_fsm_start(vsub, fi,
PR_ARQ_E_AUTH_RES,
par->is_r99,
par->is_utran);

@ -596,7 +596,6 @@ struct osmo_fsm vlr_auth_fsm = {
/* MSC->VLR: Start Procedure Authenticate_VLR (TS 23.012 Ch. 4.1.2.2) */
struct osmo_fsm_inst *auth_fsm_start(struct vlr_subscr *vsub,
uint32_t log_level,
struct osmo_fsm_inst *parent,
uint32_t parent_term_event,
bool is_r99,

@ -30,7 +30,6 @@ enum vlr_fsm_auth_event {
struct osmo_fsm vlr_auth_fsm;
struct osmo_fsm_inst *auth_fsm_start(struct vlr_subscr *vsub,
uint32_t log_level,
struct osmo_fsm_inst *parent,
uint32_t parent_term_event,
bool is_r99,

@ -906,7 +906,7 @@ static void vlr_loc_upd_node1(struct osmo_fsm_inst *fi)
/* Authenticate_VLR */
osmo_fsm_inst_state_chg(fi, VLR_ULA_S_WAIT_AUTH,
LU_TIMEOUT_LONG, 0);
vsub->auth_fsm = auth_fsm_start(lfp->vsub, fi->log_level,
vsub->auth_fsm = auth_fsm_start(lfp->vsub,
fi, VLR_ULA_E_AUTH_RES,
lfp->is_r99,
lfp->is_utran);

Loading…
Cancel
Save