projects
/
firefly-linux-kernel-4.4.55.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Merge remote-tracking branches 'asoc/topic/tlv320aic3x', 'asoc/topic/width', 'asoc...
[firefly-linux-kernel-4.4.55.git]
/
drivers
/
leds
/
leds-s3c24xx.c
diff --git
a/drivers/leds/leds-s3c24xx.c
b/drivers/leds/leds-s3c24xx.c
index 28988b7b4faba371970027eb6459105bb3ea712d..785eb53a87fc1158d5b07e78002dd5b4ec356c9e 100644
(file)
--- 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)
led = devm_kzalloc(&dev->dev, sizeof(struct s3c24xx_gpio_led),
GFP_KERNEL);
- if (led == NULL) {
- dev_err(&dev->dev, "No memory for device\n");
+ if (!led)
return -ENOMEM;
- }
platform_set_drvdata(dev, led);