Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit bda4d21b authored by Markus Elfring's avatar Markus Elfring Committed by Rafael J. Wysocki
Browse files

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: default avatarMarkus Elfring <elfring@users.sourceforge.net>
Acked-by: default avatarDaniel Lezcano <daniel.lezcano@linaro.org>
Signed-off-by: default avatarRafael J. Wysocki <rafael.j.wysocki@intel.com>
parent 661e50bc
Loading
Loading
Loading
Loading
+0 −1
Original line number Diff line number Diff line
@@ -129,7 +129,6 @@ static int __init arm_idle_init_cpu(int cpu)

	dev = kzalloc(sizeof(*dev), GFP_KERNEL);
	if (!dev) {
		pr_err("Failed to allocate cpuidle device\n");
		ret = -ENOMEM;
		goto out_unregister_drv;
	}