]> git.ipfire.org Git - thirdparty/linux.git/commit
spi: SPISG: Remove the use of dev_err_probe()
authorXichao Zhao <zhao.xichao@vivo.com>
Tue, 19 Aug 2025 09:20:39 +0000 (17:20 +0800)
committerMark Brown <broonie@kernel.org>
Tue, 19 Aug 2025 12:05:59 +0000 (13:05 +0100)
commit0d00ebc6b869f4df67c05522bc1e8d01d1c7daa7
tree35afc4c3950f16e8c804fd8a0eacef81cddb5478
parent2a5d410916d3a8dcac06f72494f252314e933cfb
spi: SPISG: 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-3-zhao.xichao@vivo.com
Signed-off-by: Mark Brown <broonie@kernel.org>
drivers/spi/spi-amlogic-spisg.c