cosmetic: Move error goto path to the end of the function

Change-Id: I3ad15a9edbfe74de3deb7298441d54fd9d0178ad
This commit is contained in:
Pau Espin 2017-07-04 13:49:18 +02:00 committed by Harald Welte
parent 69de62a573
commit db4ab8e5ce
1 changed files with 9 additions and 8 deletions

View File

@ -1549,14 +1549,7 @@ static int trx_fn_timer_cb(struct osmo_fd *ofd, unsigned int what)
/* check if transceiver is still alive */
if (tcs->fn_without_clock_ind++ == TRX_LOSS_FRAMES) {
LOGP(DL1C, LOGL_NOTICE, "No more clock from transceiver\n");
no_clock:
timer_ofd_disable(&tcs->fn_timer_ofd);
transceiver_available = 0;
bts_shutdown(bts, "No clock from osmo-trx");
return -1;
goto no_clock;
}
/* compute actual elapsed time and resulting OS scheduling error */
@ -1583,6 +1576,14 @@ no_clock:
}
return 0;
no_clock:
timer_ofd_disable(&tcs->fn_timer_ofd);
transceiver_available = 0;
bts_shutdown(bts, "No clock from osmo-trx");
return -1;
}
/*! reset clock with current fn and schedule it. Called when trx becomes