diff options
author | Geert Uytterhoeven <geert+renesas@glider.be> | 2017-01-04 11:15:08 +0100 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2017-01-04 17:39:37 +0000 |
commit | e7ad4a73364c21f40963a35631b285b60fa3198c (patch) | |
tree | 75a5763d9291d8e12f3f2e4d7437607d81647ac3 /drivers/spi/spi-sh-msiof.c | |
parent | 264c3e8de4fbda1d1342213c78fb3788a43cfd41 (diff) | |
download | linux-e7ad4a73364c21f40963a35631b285b60fa3198c.tar.gz linux-e7ad4a73364c21f40963a35631b285b60fa3198c.tar.bz2 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/spi-sh-msiof.c')
-rw-r--r-- | drivers/spi/spi-sh-msiof.c | 4 |
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); |