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>
This commit is contained in:
parent
3b20b894d4
commit
aff70f9ab1
|
@ -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) {
|
||||
|
|
Loading…
Reference in New Issue