diff options
| author | Mark Brown <broonie@kernel.org> | 2025-08-19 20:45:38 +0300 |
|---|---|---|
| committer | Mark Brown <broonie@kernel.org> | 2025-08-19 20:45:38 +0300 |
| commit | b875b97017050b92c64273178a0b0d282ea67874 (patch) | |
| tree | a7d1f21a2b2a932dba678a40200b0510e4ecdb77 /drivers/spi/spi-microchip-core.c | |
| parent | c1dd310f1d76b4b13f1854618087af2513140897 (diff) | |
| parent | 27848c082ba0b22850fd9fb7b185c015423dcdc7 (diff) | |
| download | linux-b875b97017050b92c64273178a0b0d282ea67874.tar.xz | |
spi: Remove the use of dev_err_probe()
Merge series from Xichao Zhao <zhao.xichao@vivo.com>:
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.
Diffstat (limited to 'drivers/spi/spi-microchip-core.c')
| -rw-r--r-- | drivers/spi/spi-microchip-core.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/spi/spi-microchip-core.c b/drivers/spi/spi-microchip-core.c index 62ba0bd9cbb7..9128b86c5366 100644 --- a/drivers/spi/spi-microchip-core.c +++ b/drivers/spi/spi-microchip-core.c @@ -534,8 +534,7 @@ static int mchp_corespi_probe(struct platform_device *pdev) host = devm_spi_alloc_host(&pdev->dev, sizeof(*spi)); if (!host) - return dev_err_probe(&pdev->dev, -ENOMEM, - "unable to allocate host for SPI controller\n"); + return -ENOMEM; platform_set_drvdata(pdev, host); |
