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:
parent
d5e37638b2
commit
cefd74f044
1 changed files with 2 additions and 0 deletions
|
@ -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)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue