diff options
author | Stefan Sperling <ssperling@sysmocom.de> | 2018-02-06 18:01:26 +0100 |
---|---|---|
committer | Stefan Sperling <ssperling@sysmocom.de> | 2018-02-06 18:01:26 +0100 |
commit | 00e3af8af7740d6f81694b991caaa0deb09925de (patch) | |
tree | e9bd3c5fd2debef1388d80278650a935f4db7209 | |
parent | 519f8beccf2fee905499d8560113d5075d0be02e (diff) |
formatting tweak
Change-Id: I0dcf45e587f6b9d35fb2caca7a081721a537dfad
-rw-r--r-- | src/libcommon/acc_ramp.c | 15 |
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. */ |