drivers: can: stm32: only call state change callback if state is changed
Only call the state change callback if the state has changed. Reuse the
existing function for retrieving the CAN controller state instead of
having the same code twice.
Signed-off-by:
Henrik Brix Andersen <hebad@vestas.com>
Loading
Please sign in to comment