drivers: can: stm32: fix return type missed

the return is missing at the end of function which causes compilation
warning and block the build on github.
"warning: control reaches end of non-void function [-Wreturn-type]
   92 | }| ^"

Signed-off-by: TLIG Dhaou <dhaou.tlig-ext@st.com>
This commit is contained in:
TLIG Dhaou 2022-06-20 16:14:56 +02:00 committed by Anas Nashif
commit cefd74f044

View file

@ -89,6 +89,8 @@ static int can_stm32fd_clock_enable(const struct device *dev)
} }
FDCAN_CONFIG->CKDIV = CAN_STM32FD_CLOCK_DIVISOR >> 1; FDCAN_CONFIG->CKDIV = CAN_STM32FD_CLOCK_DIVISOR >> 1;
return 0;
} }
static int can_stm32fd_init(const struct device *dev) static int can_stm32fd_init(const struct device *dev)