linux-pm.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 1/3] thermal: rcar: remove unnecessary OOM messages
@ 2014-05-07  6:03 Jingoo Han
  2014-05-07  6:04 ` [PATCH 2/3] thermal: exynos: " Jingoo Han
                   ` (2 more replies)
  0 siblings, 3 replies; 5+ messages in thread
From: Jingoo Han @ 2014-05-07  6:03 UTC (permalink / raw)
  To: 'Zhang Rui'
  Cc: 'Eduardo Valentin', linux-pm, 'Jingoo Han',
	'Kuninori Morimoto', 'Simon Horman'

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



^ permalink raw reply related	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2014-05-11  8:36 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
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 ` [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

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).