From: Xiubo Li <Li.Xiubo@freescale.com>
To: cooloney@gmail.com, rpurdie@rpsys.net,
linux-leds@vger.kernel.org, michael.hennerich@analog.com
Cc: Xiubo Li <Li.Xiubo@freescale.com>
Subject: [PATCH 4/6] leds: s3c24xx: Remove duplicated OOM message for individual driver
Date: Wed, 30 Apr 2014 16:07:23 +0800 [thread overview]
Message-ID: <1398845245-26344-5-git-send-email-Li.Xiubo@freescale.com> (raw)
In-Reply-To: <1398845245-26344-1-git-send-email-Li.Xiubo@freescale.com>
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>
---
drivers/leds/leds-s3c24xx.c | 4 +---
1 file changed, 1 insertion(+), 3 deletions(-)
diff --git a/drivers/leds/leds-s3c24xx.c b/drivers/leds/leds-s3c24xx.c
index 98174e7..37a6a92 100644
--- a/drivers/leds/leds-s3c24xx.c
+++ b/drivers/leds/leds-s3c24xx.c
@@ -77,10 +77,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);
--
1.8.4
next prev parent reply other threads:[~2014-04-30 8:52 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-04-30 8:07 [PATCH 0/6] leds: Remove duplicated OOM message for individual driver Xiubo Li
2014-04-30 8:07 ` [PATCH 1/6] leds: bd2802: " Xiubo Li
2014-04-30 8:07 ` [PATCH 2/6] leds: da903x: " Xiubo Li
2014-04-30 8:07 ` [PATCH 3/6] leds: da9052: " Xiubo Li
2014-04-30 8:07 ` Xiubo Li [this message]
2014-04-30 8:07 ` [PATCH 5/6] leds: sunfire: " Xiubo Li
2014-04-30 8:07 ` [PATCH 6/6] leds: adp5520: " Xiubo Li
2014-05-08 1:58 ` [PATCH 0/6] leds: " Bryan Wu
2014-05-08 3:36 ` Li.Xiubo
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1398845245-26344-5-git-send-email-Li.Xiubo@freescale.com \
--to=li.xiubo@freescale.com \
--cc=cooloney@gmail.com \
--cc=linux-leds@vger.kernel.org \
--cc=michael.hennerich@analog.com \
--cc=rpurdie@rpsys.net \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).