mirror of
https://github.com/torvalds/linux.git
synced 2026-06-02 19:43:40 +02:00
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>
This commit is contained in:
parent
2aade32d1f
commit
2bee48c9d1
|
|
@ -1159,7 +1159,7 @@ static int mtk_spi_probe(struct platform_device *pdev)
|
|||
|
||||
host = devm_spi_alloc_host(dev, sizeof(*mdata));
|
||||
if (!host)
|
||||
return dev_err_probe(dev, -ENOMEM, "failed to alloc spi host\n");
|
||||
return -ENOMEM;
|
||||
|
||||
host->auto_runtime_pm = true;
|
||||
host->dev.of_node = dev->of_node;
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user