From: Jingoo Han <jg1.han@samsung.com>
To: 'Zhang Rui' <rui.zhang@intel.com>
Cc: 'Eduardo Valentin' <eduardo.valentin@ti.com>,
linux-pm@vger.kernel.org, 'Jingoo Han' <jg1.han@samsung.com>,
'Kuninori Morimoto' <kuninori.morimoto.gx@renesas.com>,
'Simon Horman' <horms+renesas@verge.net.au>
Subject: [PATCH 1/3] thermal: rcar: remove unnecessary OOM messages
Date: Wed, 07 May 2014 15:03:25 +0900 [thread overview]
Message-ID: <01a401cf69ba$0f1b88d0$2d529a70$%han@samsung.com> (raw)
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/thermal/rcar_thermal.c | 5 +----
1 file changed, 1 insertion(+), 4 deletions(-)
diff --git a/drivers/thermal/rcar_thermal.c b/drivers/thermal/rcar_thermal.c
index 5a37940..105ab5e 100644
--- a/drivers/thermal/rcar_thermal.c
+++ b/drivers/thermal/rcar_thermal.c
@@ -374,10 +374,8 @@ static int rcar_thermal_probe(struct platform_device *pdev)
int idle = IDLE_INTERVAL;
common = devm_kzalloc(dev, sizeof(*common), GFP_KERNEL);
- if (!common) {
- dev_err(dev, "Could not allocate common\n");
+ if (!common)
return -ENOMEM;
- }
INIT_LIST_HEAD(&common->head);
spin_lock_init(&common->lock);
@@ -423,7 +421,6 @@ static int rcar_thermal_probe(struct platform_device *pdev)
priv = devm_kzalloc(dev, sizeof(*priv), GFP_KERNEL);
if (!priv) {
- dev_err(dev, "Could not allocate priv\n");
ret = -ENOMEM;
goto error_unregister;
}
--
1.7.10.4
next reply other threads:[~2014-05-07 6:03 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-05-07 6:03 Jingoo Han [this message]
2014-05-07 6:04 ` [PATCH 2/3] thermal: exynos: remove unnecessary OOM messages Jingoo Han
2014-05-07 6:05 ` [PATCH 3/3] thermal: spear: " Jingoo Han
2014-05-07 6:06 ` Viresh Kumar
2014-05-11 0:49 ` [PATCH 1/3] thermal: rcar: " Simon Horman
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='01a401cf69ba$0f1b88d0$2d529a70$%han@samsung.com' \
--to=jg1.han@samsung.com \
--cc=eduardo.valentin@ti.com \
--cc=horms+renesas@verge.net.au \
--cc=kuninori.morimoto.gx@renesas.com \
--cc=linux-pm@vger.kernel.org \
--cc=rui.zhang@intel.com \
/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).