summaryrefslogtreecommitdiff
path: root/include/linux/raid
diff options
context:
space:
mode:
authorVincent Mailhol <mailhol.vincent@wanadoo.fr>2021-06-28 18:54:16 +0300
committerMarc Kleine-Budde <mkl@pengutronix.de>2021-07-25 12:36:28 +0300
commit45cb13963df304fde13262654939dfb18788f95e (patch)
treea287f443392bbe0354a7a9bbb24ef88555b5ac72 /include/linux/raid
parent58fb92a517b58ff61237653a5c05c3f3d8dfe392 (diff)
downloadlinux-45cb13963df304fde13262654939dfb18788f95e.tar.xz
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 'include/linux/raid')
0 files changed, 0 insertions, 0 deletions