]> Gentwo Git Trees - linux/.git/commit
power: supply: Remove error prints for devm_add_action_or_reset()
authorWaqar Hameed <waqar.hameed@axis.com>
Tue, 5 Aug 2025 09:33:35 +0000 (11:33 +0200)
committerSebastian Reichel <sebastian.reichel@collabora.com>
Sat, 6 Sep 2025 21:22:45 +0000 (23:22 +0200)
commit32f350d58544e2529dc8798275684e97f0a2df6f
treee1e641385fc59077d89ffede51324e8c10afddf9
parent5afce048a9fa6de350110c7078e69b59f5cb3eb6
power: supply: Remove error prints for devm_add_action_or_reset()

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.

Signed-off-by: Waqar Hameed <waqar.hameed@axis.com>
Signed-off-by: Sebastian Reichel <sebastian.reichel@collabora.com>
drivers/power/supply/mt6370-charger.c
drivers/power/supply/rt9467-charger.c