diff options
author | Xiubo Li <Li.Xiubo@freescale.com> | 2014-05-07 23:25:52 -0400 |
---|---|---|
committer | Bryan Wu <cooloney@gmail.com> | 2014-05-08 02:28:08 -0400 |
commit | 0c9a03b68511daf078256367e7a98d7ff3b7dfcb (patch) | |
tree | 0edd16dbb3a39f6ff8726a76bfb1dfa3d324d536 /drivers/leds/leds-da903x.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-da903x.c')
-rw-r--r-- | drivers/leds/leds-da903x.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/drivers/leds/leds-da903x.c b/drivers/leds/leds-da903x.c index 35dffb100388..54b8b5216b8b 100644 --- a/drivers/leds/leds-da903x.c +++ b/drivers/leds/leds-da903x.c | |||
@@ -108,10 +108,8 @@ static int da903x_led_probe(struct platform_device *pdev) | |||
108 | } | 108 | } |
109 | 109 | ||
110 | led = devm_kzalloc(&pdev->dev, sizeof(struct da903x_led), GFP_KERNEL); | 110 | led = devm_kzalloc(&pdev->dev, sizeof(struct da903x_led), GFP_KERNEL); |
111 | if (led == NULL) { | 111 | if (!led) |
112 | dev_err(&pdev->dev, "failed to alloc memory for LED%d\n", id); | ||
113 | return -ENOMEM; | 112 | return -ENOMEM; |
114 | } | ||
115 | 113 | ||
116 | led->cdev.name = pdata->name; | 114 | led->cdev.name = pdata->name; |
117 | led->cdev.default_trigger = pdata->default_trigger; | 115 | led->cdev.default_trigger = pdata->default_trigger; |