Thread (2 messages) 2 messages, 2 authors, 2025-07-01

Re: [PATCH] Remove error prints for devm_add_action_or_reset()

From: Waqar Hameed <hidden>
Date: 2025-07-01 16:15:55
Also in: imx, linux-amlogic, linux-arm-msm, linux-gpio, linux-i2c, linux-iio, linux-input, linux-mediatek, linux-mmc, linux-omap, linux-phy, linux-pm, linux-pwm, linux-rockchip, linux-samsung-soc, linux-scsi, linux-sound, linux-spi, linux-usb, lkml

On Tue, Jul 01, 2025 at 12:25 -0300 Geraldo Nascimento [off-list ref] wrote:
[Some people who received this message don't often get email from geraldogabriel@gmail.com. Learn why this is important at https://aka.ms/LearnAboutSenderIdentification ]

On Tue, Jul 01, 2025 at 05:03:33PM +0200, Waqar Hameed wrote:
quoted
When `devm_add_action_or_reset()` fails, it is due to a failed memory
allocation and will thus return `-ENOMEM`. `dev_err_probe()` doesn't do
anything when error is `-ENOMEM`. Therefore, remove the useless call to
`dev_err_probe()` when `devm_add_action_or_reset()` fails, and just
return the value instead.
Hi Waqar,

thank you for the patch. However I personally advise you to split the
patches per-file and remember to then precede each individual patch
subject with the proper subsystem and driver touched.

While this looks like a nit-pick, it really isn't, and my suggestion
will make reviewing much more easier and you'll get your Reviewed-by's
and Acked-by's much more smoothly.

The cover-letter should probably be preceded by "treewide" instead of
a specific subsystem.
Thank you for the suggestion Geraldo! I will do that (as also answered
to David).
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help