Re: [PATCH v2 1/2] driver core: Make dev_err_probe() silent for -ENOMEM

From: Geert Uytterhoeven
Date: Fri Jun 14 2024 - 03:02:39 EST


On Thu, Jun 13, 2024 at 11:24 PM Uwe Kleine-König <ukleinek@xxxxxxxxxx> wrote:
> From: Uwe Kleine-König <u.kleine-koenig@xxxxxxxxxxxx>
>
> For an out-of-memory error there should be no additional output. Adapt
> dev_err_probe() to not emit the error message when err is -ENOMEM.
> This simplifies handling errors that might among others be -ENOMEM.
>
> Signed-off-by: Uwe Kleine-König <u.kleine-koenig@xxxxxxxxxxxx>

Reviewed-by: Geert Uytterhoeven <geert+renesas@xxxxxxxxx>

Gr{oetje,eeting}s,

Geert

--
Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert@xxxxxxxxxxxxxx

In personal conversations with technical people, I call myself a hacker. But
when I'm talking to journalists I just say "programmer" or something like that.
-- Linus Torvalds