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
This commit is contained in:
Pau Espin 2021-02-19 17:33:21 +01:00
parent dfbf3d2c09
commit 10475f5832
1 changed files with 4 additions and 4 deletions

View File

@ -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;