Skip to content
Commit 1e9bbb9b authored by Colin Ian King's avatar Colin Ian King Committed by Marc Kleine-Budde
Browse files

can: softing_cs: ret is never non-zero, so remove non-zero check and -ENODEV return



The error return ret is never zero in the error handling path in
softingcs_probe, so the check for non-zero and returning -ENODEV
is logically dead code and hence redundant.  Remove it and just
return ret.

Signed-off-by: default avatarColin Ian King <colin.king@canonical.com>
Signed-off-by: default avatarMarc Kleine-Budde <mkl@pengutronix.de>
parent 431af779
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment