From: Jingoo Han <jg1.han@samsung.com>
To: "'Andrew Morton'" <akpm@linux-foundation.org>
Cc: linux-kernel@vger.kernel.org,
"'Alessandro Zummo'" <a.zummo@towertech.it>,
rtc-linux@googlegroups.com, "'Jingoo Han'" <jg1.han@samsung.com>,
"'Stephen Boyd'" <sboyd@codeaurora.org>,
"'Anirudh Ghayal'" <aghayal@codeaurora.org>
Subject: [PATCH 07/10] rtc: rtc-pm8xxx: Remove unnecessary OOM messages
Date: Fri, 07 Feb 2014 17:09:20 +0900 [thread overview]
Message-ID: <001001cf23db$e7bee0d0$b73ca270$%han@samsung.com> (raw)
In-Reply-To: <000901cf23da$a04cbca0$e0e635e0$%han@samsung.com>
The site-specific OOM messages are unnecessary, because they
duplicate the MM subsystem generic OOM message.
Signed-off-by: Jingoo Han <jg1.han@samsung.com>
---
drivers/rtc/rtc-pm8xxx.c | 4 +---
1 file changed, 1 insertion(+), 3 deletions(-)
diff --git a/drivers/rtc/rtc-pm8xxx.c b/drivers/rtc/rtc-pm8xxx.c
index 03f8f75..bd76ffe 100644
--- a/drivers/rtc/rtc-pm8xxx.c
+++ b/drivers/rtc/rtc-pm8xxx.c
@@ -396,10 +396,8 @@ static int pm8xxx_rtc_probe(struct platform_device *pdev)
rtc_write_enable = pdata->rtc_write_enable;
rtc_dd = devm_kzalloc(&pdev->dev, sizeof(*rtc_dd), GFP_KERNEL);
- if (rtc_dd == NULL) {
- dev_err(&pdev->dev, "Unable to allocate memory!\n");
+ if (rtc_dd == NULL)
return -ENOMEM;
- }
/* Initialise spinlock to protect RTC control register */
spin_lock_init(&rtc_dd->ctrl_reg_lock);
--
1.7.10.4
next prev parent reply other threads:[~2014-02-07 8:09 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-02-07 8:00 [PATCH 00/10] rtc: " Jingoo Han
2014-02-07 8:02 ` [PATCH 01/10] rtc: rtc-at32ap700x: " Jingoo Han
2014-02-07 8:04 ` Hans-Christian Egtvedt
2014-02-07 8:02 ` [PATCH 02/10] rtc: rtc-davinci: " Jingoo Han
2014-02-07 8:03 ` [PATCH 03/10] rtc: rtc-ds1390: " Jingoo Han
2014-02-07 8:06 ` [PATCH 05/10] rtc: rtc-moxart: " Jingoo Han
2014-02-07 8:07 ` [PATCH 06/10] rtc: rtc-nuc900: " Jingoo Han
2014-02-07 8:09 ` Jingoo Han [this message]
2014-02-07 8:11 ` [PATCH 08/10] rtc: rtc-rx8025: " Jingoo Han
2014-02-07 8:12 ` [PATCH 09/10] rtc: rtc-sirfsoc: " Jingoo Han
2014-02-07 12:08 ` Barry Song
2014-02-07 8:14 ` [PATCH 04/10] rtc: rtc-lpc32xx: " Jingoo Han
2014-02-07 8:15 ` [PATCH 10/10] rtc: rtc-spear: " Jingoo Han
2014-02-07 10:07 ` Viresh Kumar
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='001001cf23db$e7bee0d0$b73ca270$%han@samsung.com' \
--to=jg1.han@samsung.com \
--cc=a.zummo@towertech.it \
--cc=aghayal@codeaurora.org \
--cc=akpm@linux-foundation.org \
--cc=linux-kernel@vger.kernel.org \
--cc=rtc-linux@googlegroups.com \
--cc=sboyd@codeaurora.org \
/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
all inboxes | Powered by JetHome®