From 3c12325d28700774e5d256892cada6cf4dde0b4b Mon Sep 17 00:00:00 2001 From: Pau Espin Pedrol Date: Fri, 23 Nov 2018 17:44:11 +0100 Subject: bts-trx: early return on POWERON success Later on it's expected to add more rsp parsing, so let's return here and not depend on generic return further down. Change-Id: I8ddee46374ab329c47dc68e720e236f13d393f66 --- src/osmo-bts-trx/trx_if.c | 1 + 1 file changed, 1 insertion(+) (limited to 'src/osmo-bts-trx/trx_if.c') diff --git a/src/osmo-bts-trx/trx_if.c b/src/osmo-bts-trx/trx_if.c index b0481702..abe6846d 100644 --- a/src/osmo-bts-trx/trx_if.c +++ b/src/osmo-bts-trx/trx_if.c @@ -450,6 +450,7 @@ static int trx_ctrl_rx_rsp(struct trx_l1h *l1h, struct trx_ctrl_rsp *rsp, bool c if (rsp->status == 0) { if (pinst->phy_link->state != PHY_LINK_CONNECTED) phy_link_state_set(pinst->phy_link, PHY_LINK_CONNECTED); + return 0; } else { LOGP(DTRX, LOGL_NOTICE, "transceiver (%s) rejected POWERON command (%d), re-trying in a few seconds\n", -- cgit v1.2.3