diff options
author | Jingoo Han <jg1.han@samsung.com> | 2014-04-03 14:49:00 -0700 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2014-04-03 16:21:10 -0700 |
commit | aff70f9ab1c3c1ce47ccc1b65880195be1dab8d4 (patch) | |
tree | 518affa99cb9db8c5c49b2cf8e64fc2c7765fc53 | |
parent | 3b20b894d4b3424824c8138e564d6f97bea0f114 (diff) | |
download | linux-aff70f9ab1c3c1ce47ccc1b65880195be1dab8d4.tar.gz linux-aff70f9ab1c3c1ce47ccc1b65880195be1dab8d4.tar.bz2 linux-aff70f9ab1c3c1ce47ccc1b65880195be1dab8d4.zip |
backlight: hx8357: 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>
Acked-by: Maxime Ripard <maxime.ripard@free-electrons.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
-rw-r--r-- | drivers/video/backlight/hx8357.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/drivers/video/backlight/hx8357.c b/drivers/video/backlight/hx8357.c index 985e854e244b..23f50b92a930 100644 --- a/drivers/video/backlight/hx8357.c +++ b/drivers/video/backlight/hx8357.c @@ -587,10 +587,8 @@ static int hx8357_probe(struct spi_device *spi) int i, ret; lcd = devm_kzalloc(&spi->dev, sizeof(*lcd), GFP_KERNEL); - if (!lcd) { - dev_err(&spi->dev, "Couldn't allocate lcd internal structure!\n"); + if (!lcd) return -ENOMEM; - } ret = spi_setup(spi); if (ret < 0) { |