linux/drivers/net/can/usb/kvaser_usb
Yan Zhen 0315c0b5ed 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: Yan Zhen <yanzhen@vivo.com>
Link: https://patch.msgid.link/20240830110651.519119-1-yanzhen@vivo.com
mkl: fix indention
Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
2024-08-30 22:40:23 +02:00
..
kvaser_usb.h can: kvaser_usb: Remove KVASER_USB_QUIRK_HAS_HARDWARE_TIMESTAMP 2024-08-05 17:39:02 +02:00
kvaser_usb_core.c can: kvaser_usb: Simplify with dev_err_probe() 2024-08-30 22:40:23 +02:00
kvaser_usb_hydra.c can: kvaser_usb: hydra: Set hardware timestamp on transmitted packets 2024-08-05 17:39:01 +02:00
kvaser_usb_leaf.c can: kvaser_usb: leaf: Add hardware timestamp support to usbcan devices 2024-08-05 17:39:02 +02:00
Makefile