diff options
author | Jingoo Han <jg1.han@samsung.com> | 2014-04-29 17:20:02 +0900 |
---|---|---|
committer | Mark Brown <broonie@linaro.org> | 2014-04-29 12:01:41 -0700 |
commit | 0375cff5d8c9da86787167da2740b6e5c50963da (patch) | |
tree | c51e03e5f27b0a7eaf5a0a18a3d3d7ef86299cef /drivers/spi | |
parent | 9deae4592b66c0b2a7832fefa192e7a506ce047e (diff) | |
download | op-kernel-dev-0375cff5d8c9da86787167da2740b6e5c50963da.zip op-kernel-dev-0375cff5d8c9da86787167da2740b6e5c50963da.tar.gz |
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.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/drivers/spi/spi-s3c24xx.c b/drivers/spi/spi-s3c24xx.c index 6db14e5..381d4af 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; |