summaryrefslogtreecommitdiffstats
path: root/drivers/video
diff options
context:
space:
mode:
authorJingoo Han <jg1.han@samsung.com>2014-04-03 14:49:00 -0700
committerLinus Torvalds <torvalds@linux-foundation.org>2014-04-03 16:21:10 -0700
commitaff70f9ab1c3c1ce47ccc1b65880195be1dab8d4 (patch)
tree518affa99cb9db8c5c49b2cf8e64fc2c7765fc53 /drivers/video
parent3b20b894d4b3424824c8138e564d6f97bea0f114 (diff)
downloadblackbird-op-linux-aff70f9ab1c3c1ce47ccc1b65880195be1dab8d4.tar.gz
blackbird-op-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>
Diffstat (limited to 'drivers/video')
-rw-r--r--drivers/video/backlight/hx8357.c4
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) {
OpenPOWER on IntegriCloud