leds: Remove duplicated OOM message for individual driver

The OOM message of individual driver is unnecessary, and this is
duplicate the memory subsystem generic OOM message.

Signed-off-by: Xiubo Li <Li.Xiubo@freescale.com>
Signed-off-by: Bryan Wu <cooloney@gmail.com>
Цей коміт міститься в:
Xiubo Li
2014-05-07 20:25:52 -07:00
зафіксовано Bryan Wu
джерело 24c9301ffd
коміт 0c9a03b685
6 змінених файлів з 6 додано та 18 видалено

Переглянути файл

@@ -678,10 +678,8 @@ static int bd2802_probe(struct i2c_client *client,
int ret, i;
led = devm_kzalloc(&client->dev, sizeof(struct bd2802_led), GFP_KERNEL);
if (!led) {
dev_err(&client->dev, "failed to allocate driver data\n");
if (!led)
return -ENOMEM;
}
led->client = client;
pdata = led->pdata = dev_get_platdata(&client->dev);