Skip to content

Commit

Permalink
spi: s3c24xx: remove unnecessary OOM messages
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Jingoo Han authored and Mark Brown committed Apr 29, 2014
1 parent 9deae45 commit 0375cff
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions drivers/spi/spi-s3c24xx.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 0375cff

Please sign in to comment.