diff options
author | Jingoo Han <jg1.han@samsung.com> | 2014-05-07 02:03:25 -0400 |
---|---|---|
committer | Zhang Rui <rui.zhang@intel.com> | 2014-05-15 05:15:26 -0400 |
commit | b0a60d88d60b92c769ec589796403937f6e5243e (patch) | |
tree | 81197e71342eb60cbe049ebc8820789e8a8b11ba | |
parent | 9a17f56c590cfd0d5b47f3ffa89c297534962e8f (diff) |
thermal: rcar: remove unnecessary OOM messages
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>
Acked-by: Simon Horman <horms+renesas@verge.net.au>
Signed-off-by: Zhang Rui <rui.zhang@intel.com>
-rw-r--r-- | drivers/thermal/rcar_thermal.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/drivers/thermal/rcar_thermal.c b/drivers/thermal/rcar_thermal.c index a8ed0e0265ae..8803e693fe68 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) | |||
374 | int idle = IDLE_INTERVAL; | 374 | int idle = IDLE_INTERVAL; |
375 | 375 | ||
376 | common = devm_kzalloc(dev, sizeof(*common), GFP_KERNEL); | 376 | common = devm_kzalloc(dev, sizeof(*common), GFP_KERNEL); |
377 | if (!common) { | 377 | if (!common) |
378 | dev_err(dev, "Could not allocate common\n"); | ||
379 | return -ENOMEM; | 378 | return -ENOMEM; |
380 | } | ||
381 | 379 | ||
382 | INIT_LIST_HEAD(&common->head); | 380 | INIT_LIST_HEAD(&common->head); |
383 | spin_lock_init(&common->lock); | 381 | spin_lock_init(&common->lock); |
@@ -423,7 +421,6 @@ static int rcar_thermal_probe(struct platform_device *pdev) | |||
423 | 421 | ||
424 | priv = devm_kzalloc(dev, sizeof(*priv), GFP_KERNEL); | 422 | priv = devm_kzalloc(dev, sizeof(*priv), GFP_KERNEL); |
425 | if (!priv) { | 423 | if (!priv) { |
426 | dev_err(dev, "Could not allocate priv\n"); | ||
427 | ret = -ENOMEM; | 424 | ret = -ENOMEM; |
428 | goto error_unregister; | 425 | goto error_unregister; |
429 | } | 426 | } |