]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
spi: pxa2xx: Remove the use of dev_err_probe()
authorXichao Zhao <zhao.xichao@vivo.com>
Tue, 19 Aug 2025 09:20:42 +0000 (17:20 +0800)
committerMark Brown <broonie@kernel.org>
Tue, 19 Aug 2025 12:06:02 +0000 (13:06 +0100)
commit67259af78219bdbdea00491f32b1c0971a33401e
tree2e73f7d5c3e37fd14fa1007b5ff15cc8d9d841c8
parent2bee48c9d1cd1749922d0e2df54330c924e14a0e
spi: pxa2xx: Remove the use of dev_err_probe()

The dev_err_probe() doesn't do anything when error is '-ENOMEM'. Therefore,
remove the useless call to dev_err_probe(), and just return the value instead.

Signed-off-by: Xichao Zhao <zhao.xichao@vivo.com>
Link: https://patch.msgid.link/20250819092044.549464-6-zhao.xichao@vivo.com
Signed-off-by: Mark Brown <broonie@kernel.org>
drivers/spi/spi-pxa2xx.c