diff options
author | Xiubo Li <Li.Xiubo@freescale.com> | 2014-05-07 20:25:52 -0700 |
---|---|---|
committer | Bryan Wu <cooloney@gmail.com> | 2014-05-08 14:28:08 +0800 |
commit | 0c9a03b68511daf078256367e7a98d7ff3b7dfcb (patch) | |
tree | 0edd16dbb3a39f6ff8726a76bfb1dfa3d324d536 /drivers/leds/leds-da9052.c | |
parent | 24c9301ffd21356bcd865a5155a501e5059c4c6f (diff) |
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>
Diffstat (limited to 'drivers/leds/leds-da9052.c')
-rw-r--r-- | drivers/leds/leds-da9052.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/leds/leds-da9052.c b/drivers/leds/leds-da9052.c index 01486adc7f8b..e4da1f460ac5 100644 --- a/drivers/leds/leds-da9052.c +++ b/drivers/leds/leds-da9052.c @@ -126,8 +126,7 @@ static int da9052_led_probe(struct platform_device *pdev) led = devm_kzalloc(&pdev->dev, sizeof(struct da9052_led) * pled->num_leds, GFP_KERNEL); - if (led == NULL) { - dev_err(&pdev->dev, "Failed to alloc memory\n"); + if (!led) { error = -ENOMEM; goto err; } |