Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 0167a956 authored by Jingoo Han's avatar Jingoo Han Committed by Linus Torvalds
Browse files

backlight: adp8870: remove unnecessary OOM messages



The site-specific OOM messages are unnecessary, because they duplicate
the MM subsystem generic OOM message.

Signed-off-by: default avatarJingoo Han <jg1.han@samsung.com>
Acked-by: default avatarMichael Hennerich <michael.hennerich@analog.com>
Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
parent ba464d0c
Loading
Loading
Loading
Loading
+1 −3
Original line number Diff line number Diff line
@@ -246,10 +246,8 @@ static int adp8870_led_probe(struct i2c_client *client)

	led = devm_kzalloc(&client->dev, pdata->num_leds * sizeof(*led),
				GFP_KERNEL);
	if (led == NULL) {
		dev_err(&client->dev, "failed to alloc memory\n");
	if (led == NULL)
		return -ENOMEM;
	}

	ret = adp8870_write(client, ADP8870_ISCLAW, pdata->led_fade_law);
	if (ret)