Skip to content

Commit

Permalink
Bluetooth: Controller: Remove redundant use of local variable
Browse files Browse the repository at this point in the history
Remove redundant use of local variable chan_idx in the
lll_chan_iso_subevent() function.

Signed-off-by: Vinayak Kariappa Chettimada <vich@nordicsemi.no>
  • Loading branch information
cvinayak authored and carlescufi committed Mar 17, 2023
1 parent 86757f5 commit c3e6edd
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions subsys/bluetooth/controller/ll_sw/lll_chan.c
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,6 @@ uint8_t lll_chan_iso_subevent(uint16_t chan_id, uint8_t *chan_map,
uint16_t *remap_idx)
{
uint16_t prn_subevent_se;
uint8_t chan_idx;
uint8_t d;
uint8_t x;

Expand All @@ -145,10 +144,9 @@ uint8_t lll_chan_iso_subevent(uint16_t chan_id, uint8_t *chan_map,
}

*remap_idx = ((((uint32_t)prn_subevent_se * x) >> 16) +
d + *remap_idx) % chan_count;
chan_idx = chan_sel_remap(chan_map, *remap_idx);
d + *remap_idx) % chan_count;

return chan_idx;
return chan_sel_remap(chan_map, *remap_idx);
}
#endif /* CONFIG_BT_CTLR_ISO */
#endif /* CONFIG_BT_CTLR_CHAN_SEL_2 */
Expand Down

0 comments on commit c3e6edd

Please sign in to comment.