Skip to content
Commit 08996a63 authored by Andriy Gelman's avatar Andriy Gelman Committed by Anas Nashif
Browse files

drivers: can_mcp251xfd: Forward error and remove done label



Currently if initializing one of the registers fails, the return
error gets overwritten by can_set_timing(). Fix by forwarding the
error directly. Also remove unnecessary done label.

Fixes #73586.

Original patch by melvinvdb from #73714.

Signed-off-by: default avatarAndriy Gelman <andriy.gelman@gmail.com>
parent 59bdb499
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment