aboutsummaryrefslogtreecommitdiffstats
path: root/src/libcommon/acc_ramp.c
diff options
context:
space:
mode:
authorStefan Sperling <ssperling@sysmocom.de>2018-02-06 18:01:26 +0100
committerStefan Sperling <ssperling@sysmocom.de>2018-02-06 18:01:26 +0100
commit00e3af8af7740d6f81694b991caaa0deb09925de (patch)
treee9bd3c5fd2debef1388d80278650a935f4db7209 /src/libcommon/acc_ramp.c
parent519f8beccf2fee905499d8560113d5075d0be02e (diff)
formatting tweak
Diffstat (limited to 'src/libcommon/acc_ramp.c')
-rw-r--r--src/libcommon/acc_ramp.c15
1 files changed, 10 insertions, 5 deletions
diff --git a/src/libcommon/acc_ramp.c b/src/libcommon/acc_ramp.c
index 20286b505..ecfbc77fc 100644
--- a/src/libcommon/acc_ramp.c
+++ b/src/libcommon/acc_ramp.c
@@ -89,12 +89,17 @@ static void do_ramping_step(void *data)
int idx = ffs(acc_ramp->barred_t3);
if (idx <= 0) {
idx = ffs(acc_ramp->barred_t2);
- if (idx == 1 || idx == 2) /* ACC8 or ACC9 is still barred */
+ if (idx == 1 || idx == 2) {
+ /* ACC8 or ACC9 is still barred */
allow_one_acc(acc_ramp, idx - 1 + 8);
- else
- break; /* all ACCs are now allowed */
- } else
- allow_one_acc(acc_ramp, idx - 1); /* one of ACC0-ACC7 is still bared */
+ } else {
+ /* all ACCs are now allowed */
+ break;
+ }
+ } else {
+ /* one of ACC0-ACC7 is still bared */
+ allow_one_acc(acc_ramp, idx - 1);
+ }
}
/* If we have not allowed all ACCs yet, schedule another ramping step. */