summaryrefslogtreecommitdiffstats
path: root/drivers/spi
diff options
context:
space:
mode:
authorGeert Uytterhoeven <geert+renesas@glider.be>2017-01-04 11:15:08 +0100
committerMark Brown <broonie@kernel.org>2017-01-04 18:39:37 +0100
commite7ad4a73364c21f40963a35631b285b60fa3198c (patch)
tree75a5763d9291d8e12f3f2e4d7437607d81647ac3 /drivers/spi
parentspi: sh-msiof: Do not use C++ style comment (diff)
downloadlinux-e7ad4a73364c21f40963a35631b285b60fa3198c.tar.xz
linux-e7ad4a73364c21f40963a35631b285b60fa3198c.zip
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>
Diffstat (limited to 'drivers/spi')
-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);