diff options
author | Geert Uytterhoeven <geert+renesas@glider.be> | 2017-01-04 05:15:07 -0500 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2017-01-04 12:39:21 -0500 |
commit | ffcfae3823751c72b615b57f700e563667002d09 (patch) | |
tree | 8601319395412dec49fdf59f64cb525f7b177604 | |
parent | fafd67940774733fa97f4b09412aea6981b82e0a (diff) |
spi: rspi: 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-rspi.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/drivers/spi/spi-rspi.c b/drivers/spi/spi-rspi.c index 9daf50031737..58b7e68013f3 100644 --- a/drivers/spi/spi-rspi.c +++ b/drivers/spi/spi-rspi.c | |||
@@ -1227,10 +1227,8 @@ static int rspi_probe(struct platform_device *pdev) | |||
1227 | const struct spi_ops *ops; | 1227 | const struct spi_ops *ops; |
1228 | 1228 | ||
1229 | master = spi_alloc_master(&pdev->dev, sizeof(struct rspi_data)); | 1229 | master = spi_alloc_master(&pdev->dev, sizeof(struct rspi_data)); |
1230 | if (master == NULL) { | 1230 | if (master == NULL) |
1231 | dev_err(&pdev->dev, "spi_alloc_master error.\n"); | ||
1232 | return -ENOMEM; | 1231 | return -ENOMEM; |
1233 | } | ||
1234 | 1232 | ||
1235 | of_id = of_match_device(rspi_of_match, &pdev->dev); | 1233 | of_id = of_match_device(rspi_of_match, &pdev->dev); |
1236 | if (of_id) { | 1234 | if (of_id) { |