diff options
| author | 2025-08-05 11:33:35 +0200 | |
|---|---|---|
| committer | 2025-09-06 23:22:45 +0200 | |
| commit | 32f350d58544e2529dc8798275684e97f0a2df6f (patch) | |
| tree | e1e641385fc59077d89ffede51324e8c10afddf9 /scripts/basic/git:/ssh:/git@git.zx2c4.com | |
| parent | power: supply: bq2415x: replace deprecated strcpy() with strscpy() (diff) | |
| download | wireguard-linux-32f350d58544e2529dc8798275684e97f0a2df6f.tar.xz wireguard-linux-32f350d58544e2529dc8798275684e97f0a2df6f.zip | |
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>
Diffstat (limited to 'scripts/basic/git:/ssh:/git@git.zx2c4.com')
0 files changed, 0 insertions, 0 deletions
