lkml.org 
[lkml]   [2022]   [Aug]   [8]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH] can: rcar_canfd: Use dev_err_probe() to simplify code and better handle -EPROBE_DEFER
On 07.08.2022 09:52:11, Christophe JAILLET wrote:
> devm_clk_get() can return -EPROBE_DEFER, so use dev_err_probe() instead of
> dev_err() in order to be less verbose in the log.
>
> This also saves a few LoC.
>
> While at it, turn a "goto fail_dev;" at the beginning of the function into
> a direct return in order to avoid mixing goto and return, which looks
> spurious.
>
> Signed-off-by: Christophe JAILLET <christophe.jaillet@wanadoo.fr>

Added to can-next/testing.

Thanks,
Marc

--
Pengutronix e.K. | Marc Kleine-Budde |
Embedded Linux | https://www.pengutronix.de |
Vertretung West/Dortmund | Phone: +49-231-2826-924 |
Amtsgericht Hildesheim, HRA 2686 | Fax: +49-5121-206917-5555 |
[unhandled content-type:application/pgp-signature]
\
 
 \ /
  Last update: 2022-08-08 09:57    [W:0.513 / U:0.172 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site