Skip to content

Commit c42bb71

Browse files
drivers: intc_gpio_stm32: review
apply requested changes by reviewer Signed-off-by: Alexander Kozhinov <[email protected]>
1 parent c1930dc commit c42bb71

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/interrupt_controller/intc_gpio_stm32.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,6 @@ static void stm32_intc_gpio_isr(const void *exti_range)
100100
/* see which bits are set */
101101
for (uint8_t i = 0; i <= range->len; i++) {
102102
line_num = range->start + i;
103-
line = exti_linenum_to_ll_exti_line(line_num);
104103

105104
/* check if interrupt is pending */
106105
if (stm32_exti_is_pending(line_num) != 0) {
@@ -113,6 +112,7 @@ static void stm32_intc_gpio_isr(const void *exti_range)
113112
}
114113

115114
/* `line` can be passed as-is because LL_EXTI_LINE_n is (1 << n) */
115+
line = exti_linenum_to_ll_exti_line(line_num);
116116
data->cb[line_num].cb(line, data->cb[line_num].data);
117117
}
118118
}

0 commit comments

Comments
 (0)