Skip to content

Commit 0201b6f

Browse files
drivers
1 parent 5dcb224 commit 0201b6f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/interrupt_controller/intc_exti_stm32.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@ static inline uint32_t linenum_to_ll_exti_line(uint32_t linenum)
109109
*/
110110
static inline uint32_t ll_exti_line_to_linenum(uint32_t ll_exti_line)
111111
{
112-
return ll_exti_line - ((ll_exti_line / 32U) * 32U);
112+
return ll_exti_line % 32U;
113113
}
114114

115115
/**

0 commit comments

Comments
 (0)