diff options
| author | Vincent Mailhol <mailhol.vincent@wanadoo.fr> | 2021-06-29 00:54:16 +0900 |
|---|---|---|
| committer | Marc Kleine-Budde <mkl@pengutronix.de> | 2021-07-25 11:36:28 +0200 |
| commit | 45cb13963df304fde13262654939dfb18788f95e (patch) | |
| tree | a287f443392bbe0354a7a9bbb24ef88555b5ac72 /tools/perf/scripts/python/stackcollapse.py | |
| parent | 58fb92a517b58ff61237653a5c05c3f3d8dfe392 (diff) | |
can: etas_es58x: use error pointer during device probing
Make es58x_init_es58x_dev return a pointer to the allocated structure
instead of returning an integer. Errors are handled through the helper
function ERR_PTR and IS_ERR.
This slightly simplifies the code.
Link: https://lore.kernel.org/r/20210628155420.1176217-3-mailhol.vincent@wanadoo.fr
Signed-off-by: Vincent Mailhol <mailhol.vincent@wanadoo.fr>
Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
Diffstat (limited to 'tools/perf/scripts/python/stackcollapse.py')
0 files changed, 0 insertions, 0 deletions
