summaryrefslogtreecommitdiffstats
path: root/src/host/trxcon/trx_if.c
diff options
context:
space:
mode:
authorVadim Yanitskiy <axilirator@gmail.com>2017-07-27 09:21:11 +0600
committerVadim Yanitskiy <axilirator@gmail.com>2017-11-19 17:35:07 +0700
commite6acd7bd075effc4906deb9b03b71a18a028da87 (patch)
treec361339819d93da58535f712909cff18cce88a1b /src/host/trxcon/trx_if.c
parent806e528bd1d21a307d6f1959e65b80f4978a9a36 (diff)
host/trxcon: get rid of useless TRX_EVENT_RESET_IND
Diffstat (limited to 'src/host/trxcon/trx_if.c')
-rw-r--r--src/host/trxcon/trx_if.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/host/trxcon/trx_if.c b/src/host/trxcon/trx_if.c
index 961f46c4..9c76c6d0 100644
--- a/src/host/trxcon/trx_if.c
+++ b/src/host/trxcon/trx_if.c
@@ -488,11 +488,9 @@ static int trx_ctrl_read_cb(struct osmo_fd *ofd, unsigned int what)
osmo_fsm_inst_state_chg(trx->fsm, TRX_STATE_IDLE, 0, 0);
else if (!strncmp(tcm->cmd + 4, "MEASURE", 7))
trx_if_measure_rsp_cb(trx, buf + 14);
- else if (!strncmp(tcm->cmd + 4, "ECHO", 4)) {
+ else if (!strncmp(tcm->cmd + 4, "ECHO", 4))
osmo_fsm_inst_state_chg(trx->fsm, TRX_STATE_IDLE, 0, 0);
- osmo_fsm_inst_dispatch(trxcon_fsm,
- TRX_EVENT_RESET_IND, trx);
- } else
+ else
osmo_fsm_inst_state_chg(trx->fsm, trx->prev_state, 0, 0);
/* Remove command from list */