diff options
| author | Uwe Kleine-König <[email protected]> | 2023-02-14 17:28:27 +0100 |
|---|---|---|
| committer | Herbert Xu <[email protected]> | 2023-03-10 19:10:09 +0800 |
| commit | 11f92a1308795294b0ad694f6a260c9b9c62fa51 (patch) | |
| tree | 1ce3bf0d11e1e4e54afc87fb7a7a239d307bf0a9 /tools/perf/scripts/python/export-to-sqlite.py | |
| parent | 4c9edf17c0b44655c565b59a956161a2ee125cca (diff) | |
hwrng: xgene - Simplify using dev_err_probe()
dev_err_probe simplifies the idiom:
if (ret != -EPROBE_DEFER)
dev_err(...)
return ret;
, emits the error code in a human readable way and even yields a useful
entry in /sys/kernel/debug/devices_deferred in the EPROBE_DEFER case.
So simplify and at the same time improve the driver by using
dev_err_probe().
Signed-off-by: Uwe Kleine-König <[email protected]>
Signed-off-by: Herbert Xu <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/export-to-sqlite.py')
0 files changed, 0 insertions, 0 deletions