diff options
| author | Xichao Zhao <zhao.xichao@vivo.com> | 2025-08-19 17:20:43 +0800 |
|---|---|---|
| committer | Mark Brown <broonie@kernel.org> | 2025-08-19 13:06:03 +0100 |
| commit | 27848c082ba0b22850fd9fb7b185c015423dcdc7 (patch) | |
| tree | dd618e02823526ab2e2c7c2c1a12e299e5d48a8e | |
| parent | spi: pxa2xx: Remove the use of dev_err_probe() (diff) | |
| download | linux-27848c082ba0b22850fd9fb7b185c015423dcdc7.tar.gz linux-27848c082ba0b22850fd9fb7b185c015423dcdc7.zip | |
spi: s3c64xx: 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>
Reviewed-by: Tudor Ambarus <tudor.ambarus@linaro.org>
Link: https://patch.msgid.link/20250819092044.549464-7-zhao.xichao@vivo.com
Signed-off-by: Mark Brown <broonie@kernel.org>
| -rw-r--r-- | drivers/spi/spi-s3c64xx.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/spi/spi-s3c64xx.c b/drivers/spi/spi-s3c64xx.c index b1567243ae19..3a00f9e480c5 100644 --- a/drivers/spi/spi-s3c64xx.c +++ b/drivers/spi/spi-s3c64xx.c @@ -1268,8 +1268,7 @@ static int s3c64xx_spi_probe(struct platform_device *pdev) host = devm_spi_alloc_host(&pdev->dev, sizeof(*sdd)); if (!host) - return dev_err_probe(&pdev->dev, -ENOMEM, - "Unable to allocate SPI Host\n"); + return -ENOMEM; platform_set_drvdata(pdev, host); |
