提交 bda4d21b 编写于 作者: M Markus Elfring 提交者: Rafael J. Wysocki

ARM: cpuidle: Drop memory allocation error message from arm_idle_init_cpu()

Omit an extra message for a memory allocation failure in this function.

This issue was detected by using the Coccinelle software.
Signed-off-by: NMarkus Elfring <elfring@users.sourceforge.net>
Acked-by: NDaniel Lezcano <daniel.lezcano@linaro.org>
Signed-off-by: NRafael J. Wysocki <rafael.j.wysocki@intel.com>
上级 661e50bc
...@@ -129,7 +129,6 @@ static int __init arm_idle_init_cpu(int cpu) ...@@ -129,7 +129,6 @@ static int __init arm_idle_init_cpu(int cpu)
dev = kzalloc(sizeof(*dev), GFP_KERNEL); dev = kzalloc(sizeof(*dev), GFP_KERNEL);
if (!dev) { if (!dev) {
pr_err("Failed to allocate cpuidle device\n");
ret = -ENOMEM; ret = -ENOMEM;
goto out_unregister_drv; goto out_unregister_drv;
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册