Skip to content

Commit 2bee48c

Browse files
Xichao Zhaobroonie
authored andcommitted
spi: mt65xx: 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-5-zhao.xichao@vivo.com Signed-off-by: Mark Brown <broonie@kernel.org>
1 parent 2aade32 commit 2bee48c

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

drivers/spi/spi-mt65xx.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1159,7 +1159,7 @@ static int mtk_spi_probe(struct platform_device *pdev)
11591159

11601160
host = devm_spi_alloc_host(dev, sizeof(*mdata));
11611161
if (!host)
1162-
return dev_err_probe(dev, -ENOMEM, "failed to alloc spi host\n");
1162+
return -ENOMEM;
11631163

11641164
host->auto_runtime_pm = true;
11651165
host->dev.of_node = dev->of_node;

0 commit comments

Comments
 (0)