Messages in this thread | | | Date | Mon, 8 Aug 2022 09:57:32 +0200 | From | Marc Kleine-Budde <> | Subject | Re: [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] | |