aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorPau Espin Pedrol <pespin@sysmocom.de>2018-11-27 19:33:59 +0100
committerPau Espin Pedrol <pespin@sysmocom.de>2018-11-28 11:51:07 +0000
commit4933048d3f7d00fc63b1662dcc8e1c0c32d0e06a (patch)
tree61ef075c70d25dfe06f65cfa3c3f542cb212b576 /src
parent686deafa487802c6a99ef099d17d2e963dc2876c (diff)
cosmetic: bsc: timeslot_fsm: Clean uneeded scope brackets
Diffstat (limited to 'src')
-rw-r--r--src/osmo-bsc/timeslot_fsm.c9
1 files changed, 4 insertions, 5 deletions
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);
}