From 10475f5832ec5bfa528380fddd284c1bacf4f68c Mon Sep 17 00:00:00 2001 From: Pau Espin Pedrol Date: Fri, 19 Feb 2021 17:33:21 +0100 Subject: [PATCH] find_multi_slots: Mark mslot_class properties const This way it's clear for reader that those variables are never touched during the function. Change-Id: Ief038c75bc02d0e987135f29599014eab88447dd --- src/gprs_rlcmac_ts_alloc.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/gprs_rlcmac_ts_alloc.cpp b/src/gprs_rlcmac_ts_alloc.cpp index 1645b871..cb054cd0 100644 --- a/src/gprs_rlcmac_ts_alloc.cpp +++ b/src/gprs_rlcmac_ts_alloc.cpp @@ -516,10 +516,10 @@ static bool skip_slot(uint8_t mslot_class, bool check_tr, */ int find_multi_slots(struct gprs_rlcmac_trx *trx, uint8_t mslot_class, uint8_t *ul_slots, uint8_t *dl_slots) { - uint8_t Rx = mslot_class_get_rx(mslot_class), /* Max number of Rx slots */ - Tx = mslot_class_get_tx(mslot_class), /* Max number of Tx slots */ - Sum = mslot_class_get_sum(mslot_class), /* Max number of Tx + Rx slots */ - max_slots, num_rx, num_tx, mask_sel, pdch_slots, ul_ts, dl_ts; + const uint8_t Rx = mslot_class_get_rx(mslot_class), /* Max number of Rx slots */ + Tx = mslot_class_get_tx(mslot_class), /* Max number of Tx slots */ + Sum = mslot_class_get_sum(mslot_class); /* Max number of Tx + Rx slots */ + uint8_t max_slots, num_rx, num_tx, mask_sel, pdch_slots, ul_ts, dl_ts; int16_t rx_window, tx_window; char slot_info[9] = {0}; int max_capacity = -1;