Re: [PATCH] driver core: Make dev_err_probe() silent for -ENOMEM

From: Andy Shevchenko
Date: Fri Apr 12 2024 - 12:52:01 EST


On Fri, Apr 12, 2024 at 06:44:05PM +0200, Uwe Kleine-König wrote:
> 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.

..

BUILD_BUG_ON(err == -ENOMEM);

Done!


--
With Best Regards,
Andy Shevchenko