]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
spi: nxp-fspi: Remove error print for devm_add_action_or_reset()
authorWaqar Hameed <waqar.hameed@axis.com>
Tue, 5 Aug 2025 09:33:37 +0000 (11:33 +0200)
committerMark Brown <broonie@kernel.org>
Sun, 10 Aug 2025 20:11:38 +0000 (21:11 +0100)
commit692abf80ce8443a4ded8cade25a1acf772436293
tree6bdb4513f4ba3ed5d3868c571a0218a45b3de92c
parent5da3a0b0106e855b2c81cdac77b24d1170417370
spi: nxp-fspi: Remove error print 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>
Link: https://patch.msgid.link/pndqzxqkt8u.a.out@axis.com
Signed-off-by: Mark Brown <broonie@kernel.org>
drivers/spi/spi-nxp-fspi.c