mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
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>,
	"' Kevin Wells'" <kevin.wells@nxp.com>,
	"'Roland Stigge'" <stigge@antcom.de>
Subject: [PATCH 04/10] rtc: rtc-lpc32xx: Remove unnecessary OOM messages
Date: Fri, 07 Feb 2014 17:14:04 +0900	[thread overview]
Message-ID: <001501cf23dc$910b7c20$b3227460$%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-lpc32xx.c |    5 ++---
 1 file changed, 2 insertions(+), 3 deletions(-)

diff --git a/drivers/rtc/rtc-lpc32xx.c b/drivers/rtc/rtc-lpc32xx.c
index bfdbcb8..f130c08 100644
--- a/drivers/rtc/rtc-lpc32xx.c
+++ b/drivers/rtc/rtc-lpc32xx.c
@@ -211,10 +211,9 @@ static int lpc32xx_rtc_probe(struct platform_device *pdev)
 	}
 
 	rtc = devm_kzalloc(&pdev->dev, sizeof(*rtc), GFP_KERNEL);
-	if (unlikely(!rtc)) {
-		dev_err(&pdev->dev, "Can't allocate memory\n");
+	if (unlikely(!rtc))
 		return -ENOMEM;
-	}
+
 	rtc->irq = rtcirq;
 
 	res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
-- 
1.7.10.4



  parent reply	other threads:[~2014-02-07  8:14 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 ` [PATCH 07/10] rtc: rtc-pm8xxx: " Jingoo Han
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 ` Jingoo Han [this message]
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='001501cf23dc$910b7c20$b3227460$%han@samsung.com' \
    --to=jg1.han@samsung.com \
    --cc=a.zummo@towertech.it \
    --cc=akpm@linux-foundation.org \
    --cc=kevin.wells@nxp.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=rtc-linux@googlegroups.com \
    --cc=stigge@antcom.de \
    /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®