提交 b0a60d88 编写于 作者: J Jingoo Han 提交者: Zhang Rui

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: NJingoo Han <jg1.han@samsung.com>
Acked-by: NSimon Horman <horms+renesas@verge.net.au>
Signed-off-by: NZhang Rui <rui.zhang@intel.com>
上级 9a17f56c
...@@ -374,10 +374,8 @@ static int rcar_thermal_probe(struct platform_device *pdev) ...@@ -374,10 +374,8 @@ static int rcar_thermal_probe(struct platform_device *pdev)
int idle = IDLE_INTERVAL; int idle = IDLE_INTERVAL;
common = devm_kzalloc(dev, sizeof(*common), GFP_KERNEL); common = devm_kzalloc(dev, sizeof(*common), GFP_KERNEL);
if (!common) { if (!common)
dev_err(dev, "Could not allocate common\n");
return -ENOMEM; return -ENOMEM;
}
INIT_LIST_HEAD(&common->head); INIT_LIST_HEAD(&common->head);
spin_lock_init(&common->lock); spin_lock_init(&common->lock);
...@@ -423,7 +421,6 @@ static int rcar_thermal_probe(struct platform_device *pdev) ...@@ -423,7 +421,6 @@ static int rcar_thermal_probe(struct platform_device *pdev)
priv = devm_kzalloc(dev, sizeof(*priv), GFP_KERNEL); priv = devm_kzalloc(dev, sizeof(*priv), GFP_KERNEL);
if (!priv) { if (!priv) {
dev_err(dev, "Could not allocate priv\n");
ret = -ENOMEM; ret = -ENOMEM;
goto error_unregister; goto error_unregister;
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册