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>,
'Viresh Kumar' <viresh.kumar@linaro.org>
Subject: [PATCH 3/3] thermal: spear: remove unnecessary OOM messages
Date: Wed, 07 May 2014 15:05:32 +0900 [thread overview]
Message-ID: <01ad01cf69ba$5af198d0$10d4ca70$%han@samsung.com> (raw)
In-Reply-To: <01a401cf69ba$0f1b88d0$2d529a70$%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/thermal/spear_thermal.c | 4 +---
1 file changed, 1 insertion(+), 3 deletions(-)
diff --git a/drivers/thermal/spear_thermal.c b/drivers/thermal/spear_thermal.c
index ab79ea4..1e2193f 100644
--- a/drivers/thermal/spear_thermal.c
+++ b/drivers/thermal/spear_thermal.c
@@ -113,10 +113,8 @@ static int spear_thermal_probe(struct platform_device *pdev)
}
stdev = devm_kzalloc(&pdev->dev, sizeof(*stdev), GFP_KERNEL);
- if (!stdev) {
- dev_err(&pdev->dev, "kzalloc fail\n");
+ if (!stdev)
return -ENOMEM;
- }
/* Enable thermal sensor */
res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
--
1.7.10.4
next prev parent reply other threads:[~2014-05-07 6:05 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-05-07 6:03 [PATCH 1/3] thermal: rcar: remove unnecessary OOM messages Jingoo Han
2014-05-07 6:04 ` [PATCH 2/3] thermal: exynos: " Jingoo Han
2014-05-07 6:05 ` Jingoo Han [this message]
2014-05-07 6:06 ` [PATCH 3/3] thermal: spear: " 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='01ad01cf69ba$5af198d0$10d4ca70$%han@samsung.com' \
--to=jg1.han@samsung.com \
--cc=eduardo.valentin@ti.com \
--cc=linux-pm@vger.kernel.org \
--cc=rui.zhang@intel.com \
--cc=viresh.kumar@linaro.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;
as well as URLs for NNTP newsgroup(s).