summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGeert Uytterhoeven <geert+renesas@glider.be>2017-01-04 13:15:08 +0300
committerMark Brown <broonie@kernel.org>2017-01-04 20:39:37 +0300
commite7ad4a73364c21f40963a35631b285b60fa3198c (patch)
tree75a5763d9291d8e12f3f2e4d7437607d81647ac3
parent264c3e8de4fbda1d1342213c78fb3788a43cfd41 (diff)
downloadlinux-e7ad4a73364c21f40963a35631b285b60fa3198c.tar.xz
spi: sh-msiof: Remove useless memory allocation failure message
Printing an error on memory allocation failure is unnecessary. Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be> Signed-off-by: Mark Brown <broonie@kernel.org>
-rw-r--r--drivers/spi/spi-sh-msiof.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/drivers/spi/spi-sh-msiof.c b/drivers/spi/spi-sh-msiof.c
index 1f00eeb0b5a3..2ce15ca97782 100644
--- a/drivers/spi/spi-sh-msiof.c
+++ b/drivers/spi/spi-sh-msiof.c
@@ -1164,10 +1164,8 @@ static int sh_msiof_spi_probe(struct platform_device *pdev)
int ret;
master = spi_alloc_master(&pdev->dev, sizeof(struct sh_msiof_spi_priv));
- if (master == NULL) {
- dev_err(&pdev->dev, "failed to allocate spi master\n");
+ if (master == NULL)
return -ENOMEM;
- }
p = spi_master_get_devdata(master);