Skip to content

Commit 27848c0

Browse files
Xichao Zhaobroonie
authored andcommitted
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>
1 parent 67259af commit 27848c0

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

drivers/spi/spi-s3c64xx.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1268,8 +1268,7 @@ static int s3c64xx_spi_probe(struct platform_device *pdev)
12681268

12691269
host = devm_spi_alloc_host(&pdev->dev, sizeof(*sdd));
12701270
if (!host)
1271-
return dev_err_probe(&pdev->dev, -ENOMEM,
1272-
"Unable to allocate SPI Host\n");
1271+
return -ENOMEM;
12731272

12741273
platform_set_drvdata(pdev, host);
12751274

0 commit comments

Comments
 (0)