From ea0e993bc464e4118ab7753855a65a01d91317ed Mon Sep 17 00:00:00 2001 From: Stefan Sperling Date: Thu, 8 Feb 2018 17:23:03 +0100 Subject: don't read barred bitmasks directly where it isn't needed Change-Id: Ida05eef654a8762cdc8fee2eb0b9df7abcc6a492 --- src/libbsc/acc_ramp.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/libbsc/acc_ramp.c b/src/libbsc/acc_ramp.c index d5614f566..73df4fe93 100644 --- a/src/libbsc/acc_ramp.c +++ b/src/libbsc/acc_ramp.c @@ -119,14 +119,14 @@ static void do_ramping_step(void *data) /* Allow 'step_size' ACCs, starting from ACC0. ACC9 will be allowed last. */ for (i = 0; i < acc_ramp->step_size; i++) { - int idx = ffs(acc_ramp->barred_t3); + int idx = ffs(acc_ramp_get_barred_t3(acc_ramp)); if (idx > 0) { /* One of ACC0-ACC7 is still bared. */ unsigned int acc = idx - 1; if (bts_allows_acc(acc_ramp->bts, acc)) allow_one_acc(acc_ramp, acc); } else { - idx = ffs(acc_ramp->barred_t2); + idx = ffs(acc_ramp_get_barred_t2(acc_ramp)); if (idx == 1 || idx == 2) { /* ACC8 or ACC9 is still barred. */ unsigned int acc = idx - 1 + 8; -- cgit v1.2.3