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-s3c24xx.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-s3c24xx.c')
-rw-r--r-- | drivers/leds/leds-s3c24xx.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/drivers/leds/leds-s3c24xx.c b/drivers/leds/leds-s3c24xx.c index 28988b7b4fab..785eb53a87fc 100644 --- a/drivers/leds/leds-s3c24xx.c +++ b/drivers/leds/leds-s3c24xx.c | |||
@@ -76,10 +76,8 @@ static int s3c24xx_led_probe(struct platform_device *dev) | |||
76 | 76 | ||
77 | led = devm_kzalloc(&dev->dev, sizeof(struct s3c24xx_gpio_led), | 77 | led = devm_kzalloc(&dev->dev, sizeof(struct s3c24xx_gpio_led), |
78 | GFP_KERNEL); | 78 | GFP_KERNEL); |
79 | if (led == NULL) { | 79 | if (!led) |
80 | dev_err(&dev->dev, "No memory for device\n"); | ||
81 | return -ENOMEM; | 80 | return -ENOMEM; |
82 | } | ||
83 | 81 | ||
84 | platform_set_drvdata(dev, led); | 82 | platform_set_drvdata(dev, led); |
85 | 83 | ||