summaryrefslogtreecommitdiffstats
path: root/drivers/spi
diff options
context:
space:
mode:
authorJingoo Han <jg1.han@samsung.com>2014-04-29 10:20:02 +0200
committerMark Brown <broonie@linaro.org>2014-04-29 21:01:41 +0200
commit0375cff5d8c9da86787167da2740b6e5c50963da (patch)
treec51e03e5f27b0a7eaf5a0a18a3d3d7ef86299cef /drivers/spi
parentspi: pxa2xx: remove unnecessary OOM messages (diff)
downloadlinux-0375cff5d8c9da86787167da2740b6e5c50963da.tar.xz
linux-0375cff5d8c9da86787167da2740b6e5c50963da.zip
spi: s3c24xx: remove unnecessary OOM messages
The site-specific OOM messages are unnecessary, because they duplicate the MM subsystem generic OOM message. Signed-off-by: Jingoo Han <jg1.han@samsung.com> Signed-off-by: Mark Brown <broonie@linaro.org>
Diffstat (limited to 'drivers/spi')
-rw-r--r--drivers/spi/spi-s3c24xx.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/drivers/spi/spi-s3c24xx.c b/drivers/spi/spi-s3c24xx.c
index 6db14e53af17..381d4af149fc 100644
--- a/drivers/spi/spi-s3c24xx.c
+++ b/drivers/spi/spi-s3c24xx.c
@@ -186,10 +186,8 @@ static int s3c24xx_spi_setup(struct spi_device *spi)
cs = devm_kzalloc(&spi->dev,
sizeof(struct s3c24xx_spi_devstate),
GFP_KERNEL);
- if (!cs) {
- dev_err(&spi->dev, "no memory for controller state\n");
+ if (!cs)
return -ENOMEM;
- }
cs->spcon = SPCON_DEFAULT;
cs->hz = -1;