mfd: macsmc: Remove error prints for devm_add_action_or_reset()
authorWaqar Hameed <waqar.hameed@axis.com>
Tue, 5 Aug 2025 09:33:34 +0000 (11:33 +0200)
committerLee Jones <lee@kernel.org>
Wed, 1 Oct 2025 09:28:19 +0000 (10:28 +0100)
commit99767a0c8bb4e206f6cea37f5162073d1899168c
treeab52214fb6ab4f84ac81c6d7fa56320827c93cf1
parent9ac4890ac39352ccea132109e32911495574c3ec
mfd: macsmc: 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>
Reviewed-by: Sven Peter <sven@kernel.org>
Link: https://lore.kernel.org/r/pnd8qjym7td.a.out@axis.com
Signed-off-by: Lee Jones <lee@kernel.org>
drivers/mfd/macsmc.c