Re: [PATCH v2] input: zforce_ts: Remove error print for devm_add_action_or_reset()
From: Waqar Hameed <hidden>
Date: 2025-10-10 13:36:40
Also in:
lkml
From: Waqar Hameed <hidden>
Date: 2025-10-10 13:36:40
Also in:
lkml
On Tue, Aug 05, 2025 at 11:33 +0200 Waqar Hameed [off-list ref] wrote:
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.
Friendly ping incoming!