aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPau Espin Pedrol <pespin@sysmocom.de>2021-02-19 17:33:21 +0100
committerPau Espin Pedrol <pespin@sysmocom.de>2021-02-19 17:33:23 +0100
commit10475f5832ec5bfa528380fddd284c1bacf4f68c (patch)
tree6929983546d060a234c6adddbe1a8db75db088a1
parentdfbf3d2c0970088431b8cf7b3c133c23de50a736 (diff)
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
-rw-r--r--src/gprs_rlcmac_ts_alloc.cpp8
1 files 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;