From 4933048d3f7d00fc63b1662dcc8e1c0c32d0e06a Mon Sep 17 00:00:00 2001 From: Pau Espin Pedrol Date: Tue, 27 Nov 2018 19:33:59 +0100 Subject: cosmetic: bsc: timeslot_fsm: Clean uneeded scope brackets Change-Id: I5140f98e23b8c8d16ce0cca0be66297aaf0b5653 --- src/osmo-bsc/timeslot_fsm.c | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) (limited to 'src/osmo-bsc') diff --git a/src/osmo-bsc/timeslot_fsm.c b/src/osmo-bsc/timeslot_fsm.c index fc2546003..8351ff7ef 100644 --- a/src/osmo-bsc/timeslot_fsm.c +++ b/src/osmo-bsc/timeslot_fsm.c @@ -911,6 +911,8 @@ bool ts_is_pchan_switching(struct gsm_bts_trx_ts *ts, enum gsm_phys_chan_config * and will be served after the switch. (Do not check whether any lchans are actually available.) */ bool ts_usable_as_pchan(struct gsm_bts_trx_ts *ts, enum gsm_phys_chan_config as_pchan) { + enum gsm_phys_chan_config target_pchan; + if (!ts_is_usable(ts)) return false; @@ -922,11 +924,8 @@ bool ts_usable_as_pchan(struct gsm_bts_trx_ts *ts, enum gsm_phys_chan_config as_ break; } - { - enum gsm_phys_chan_config target_pchan; - if (ts_is_lchan_waiting_for_pchan(ts, &target_pchan)) - return target_pchan == as_pchan; - } + if (ts_is_lchan_waiting_for_pchan(ts, &target_pchan)) + return target_pchan == as_pchan; return ts_is_capable_of_pchan(ts, as_pchan); } -- cgit v1.2.3