aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorStefan Sperling <ssperling@sysmocom.de>2018-02-08 17:15:21 +0100
committerStefan Sperling <ssperling@sysmocom.de>2018-02-08 17:15:21 +0100
commit469d69585ff1fc2f0a9ff816fac817fb08fc3474 (patch)
tree8ba3889c764f5caa66a448810d91fbe741bb8c8c
parent8e0917dbe75b581b600a9c00230f931edbde45ed (diff)
improve comments
-rw-r--r--src/libbsc/acc_ramp.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/libbsc/acc_ramp.c b/src/libbsc/acc_ramp.c
index d9d0e23ce..a6731c1f2 100644
--- a/src/libbsc/acc_ramp.c
+++ b/src/libbsc/acc_ramp.c
@@ -124,15 +124,15 @@ static void do_ramping_step(void *data)
for (i = 0; i < acc_ramp->step_size; i++) {
int idx = ffs(acc_ramp->barred_t3);
if (idx > 0) {
+ /* One of ACC0-ACC7 is still bared. */
unsigned int acc = idx - 1;
- /* one of ACC0-ACC7 is still bared */
if (bts_allows_acc(acc_ramp->bts, acc))
allow_one_acc(acc_ramp, acc);
} else {
idx = ffs(acc_ramp->barred_t2);
if (idx == 1 || idx == 2) {
+ /* ACC8 or ACC9 is still barred. */
unsigned int acc = idx - 1 + 8;
- /* ACC8 or ACC9 is still barred */
if (bts_allows_acc(acc_ramp->bts, acc))
allow_one_acc(acc_ramp, acc);
} else {