Commit 0315c0b5 authored by Yan Zhen's avatar Yan Zhen Committed by Marc Kleine-Budde
Browse files

can: kvaser_usb: Simplify with dev_err_probe()



dev_err_probe() is used to log an error message during the probe process
of a device.

It can simplify the error path and unify a message template.

Using this helper is totally fine even if err is known to never
be -EPROBE_DEFER.

The benefit compared to a normal dev_err() is the standardized format
of the error code, it being emitted symbolically and the fact that
the error code is returned which allows more compact error paths.

Signed-off-by: default avatarYan Zhen <yanzhen@vivo.com>
Link: https://patch.msgid.link/20240830110651.519119-1-yanzhen@vivo.com


mkl: fix indention
Signed-off-by: default avatarMarc Kleine-Budde <mkl@pengutronix.de>
parent a9c0fb33
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment