Skip to content
Snippets Groups Projects
Unverified Commit 88e7e0a8 authored by Geert Uytterhoeven's avatar Geert Uytterhoeven Committed by Mark Brown
Browse files

spi: sh-hspi: Remove error messages on out-of-memory conditions


There is no need to print an error message when memory allocations or
related operations fail, as the core will take care of that.

Signed-off-by: default avatarGeert Uytterhoeven <geert+renesas@glider.be>
Signed-off-by: default avatarMark Brown <broonie@kernel.org>
parent f1b2c1c8
No related branches found
No related tags found
No related merge requests found
......@@ -226,10 +226,8 @@ static int hspi_probe(struct platform_device *pdev)
}
master = spi_alloc_master(&pdev->dev, sizeof(*hspi));
if (!master) {
dev_err(&pdev->dev, "spi_alloc_master error.\n");
if (!master)
return -ENOMEM;
}
clk = clk_get(&pdev->dev, NULL);
if (IS_ERR(clk)) {
......@@ -248,7 +246,6 @@ static int hspi_probe(struct platform_device *pdev)
hspi->addr = devm_ioremap(hspi->dev,
res->start, resource_size(res));
if (!hspi->addr) {
dev_err(&pdev->dev, "ioremap error.\n");
ret = -ENOMEM;
goto error1;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment