aboutsummaryrefslogtreecommitdiffstats
path: root/src/osmo-bts-trx/loops.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/osmo-bts-trx/loops.c')
-rw-r--r--src/osmo-bts-trx/loops.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/osmo-bts-trx/loops.c b/src/osmo-bts-trx/loops.c
index a959a71..2e54023 100644
--- a/src/osmo-bts-trx/loops.c
+++ b/src/osmo-bts-trx/loops.c
@@ -102,11 +102,9 @@ static int ms_power_val(struct l1sched_chan_state *chan_state, int8_t rssi)
chan_state->meas.rssi_got_burst = 1;
/* store and process RSSI */
- if (chan_state->meas.rssi_valid_count
- == ARRAY_SIZE(chan_state->meas.rssi))
+ if (chan_state->meas.rssi_valid_count >= ARRAY_SIZE(chan_state->meas.rssi))
return 0;
chan_state->meas.rssi[chan_state->meas.rssi_valid_count++] = rssi;
- chan_state->meas.rssi_valid_count++;
return 0;
}