From: Jingoo Han Date: Tue, 29 Apr 2014 08:20:02 +0000 (+0900) Subject: spi: s3c24xx: remove unnecessary OOM messages X-Git-Tag: next-20140502~31^2^2~4 X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=0375cff5d8c9da86787167da2740b6e5c50963da;p=karo-tx-linux.git 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 Signed-off-by: Mark Brown --- 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;