diff options
author | H Hartley Sweeten <hartleys@visionengravers.com> | 2013-07-02 10:08:59 -0700 |
---|---|---|
committer | Mark Brown <broonie@linaro.org> | 2013-07-15 11:37:14 +0100 |
commit | b2d185edbac9c40adb1d390ad966e6900992e69d (patch) | |
tree | 716b7e9000150691d706e570d166af6c3f10a91c /drivers/spi/spi-ep93xx.c | |
parent | 48a7776e981fdf780728e45de4ae4f2b522c9c4d (diff) |
spi: spi-ep93xx: remove dev_err() for kzalloc() failure
The kzalloc() failure will have already output a message.
Signed-off-by: H Hartley Sweeten <hsweeten@visionengravers.com>
Acked-by: Mika Westerberg <mika.westerberg@iki.fi>
Signed-off-by: Mark Brown <broonie@linaro.org>
Diffstat (limited to 'drivers/spi/spi-ep93xx.c')
-rw-r--r-- | drivers/spi/spi-ep93xx.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/drivers/spi/spi-ep93xx.c b/drivers/spi/spi-ep93xx.c index c2660c24c0a..7a44163ace5 100644 --- a/drivers/spi/spi-ep93xx.c +++ b/drivers/spi/spi-ep93xx.c @@ -1004,10 +1004,8 @@ static int ep93xx_spi_probe(struct platform_device *pdev) } master = spi_alloc_master(&pdev->dev, sizeof(*espi)); - if (!master) { - dev_err(&pdev->dev, "failed to allocate spi master\n"); + if (!master) return -ENOMEM; - } master->setup = ep93xx_spi_setup; master->transfer = ep93xx_spi_transfer; |