summaryrefslogtreecommitdiffstats
path: root/drivers/spi/spi-tle62x0.c
diff options
context:
space:
mode:
authorJingoo Han <jg1.han@samsung.com>2014-04-29 17:22:32 +0900
committerMark Brown <broonie@linaro.org>2014-04-29 12:01:42 -0700
commit9f48e54bf70018547b0c146b4187489c615bd3a2 (patch)
tree04dbfb129ee0566df7143dc0424fa13270036692 /drivers/spi/spi-tle62x0.c
parent1e8231b79ccbb3e6e7b3f6af9f998dca16b00efe (diff)
downloadlinux-9f48e54bf70018547b0c146b4187489c615bd3a2.tar.bz2
spi: tle62x0: 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/spi-tle62x0.c')
-rw-r--r--drivers/spi/spi-tle62x0.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/drivers/spi/spi-tle62x0.c b/drivers/spi/spi-tle62x0.c
index 2d4010d80824..daf5aa1c24c3 100644
--- a/drivers/spi/spi-tle62x0.c
+++ b/drivers/spi/spi-tle62x0.c
@@ -253,10 +253,8 @@ static int tle62x0_probe(struct spi_device *spi)
}
st = kzalloc(sizeof(struct tle62x0_state), GFP_KERNEL);
- if (st == NULL) {
- dev_err(&spi->dev, "no memory for device state\n");
+ if (st == NULL)
return -ENOMEM;
- }
st->us = spi;
st->nr_gpio = pdata->gpio_count;