diff options
| author | Yan Zhen <[email protected]> | 2024-08-30 19:06:51 +0800 |
|---|---|---|
| committer | Marc Kleine-Budde <[email protected]> | 2024-08-30 22:40:23 +0200 |
| commit | 0315c0b5ed253853a7b07dc97487522345110548 (patch) | |
| tree | d443535db57c86791d005a181c1228ec9e2024f1 /tools/perf/scripts/python | |
| parent | a9c0fb33fd454fda5283281e47d556c81ee9fa47 (diff) | |
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 <[email protected]>
Link: https://patch.msgid.link/[email protected]
mkl: fix indention
Signed-off-by: Marc Kleine-Budde <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions