Unverified Commit 27848c08 authored by Xichao Zhao's avatar Xichao Zhao Committed by Mark Brown
Browse files

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: default avatarXichao Zhao <zhao.xichao@vivo.com>
Reviewed-by: default avatarTudor Ambarus <tudor.ambarus@linaro.org>
Link: https://patch.msgid.link/20250819092044.549464-7-zhao.xichao@vivo.com


Signed-off-by: default avatarMark Brown <broonie@kernel.org>
parent 67259af7
Loading
Loading
Loading
Loading
+1 −2
Original line number Diff line number Diff line
@@ -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);