Browse Source

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>
Jingoo Han 11 years ago
parent
commit
0375cff5d8
1 changed files with 1 additions and 3 deletions
  1. 1 3
      drivers/spi/spi-s3c24xx.c

+ 1 - 3
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;