Skip to content
Commit 0bdc2983 authored by Henrik Brix Andersen's avatar Henrik Brix Andersen Committed by Marti Bolivar
Browse files

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: default avatarHenrik Brix Andersen <hebad@vestas.com>
parent 00a3a0f1
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment