ARM: cpuidle: Drop memory allocation error message from arm_idle_init_cpu()
authorMarkus Elfring <elfring@users.sourceforge.net>
Thu, 15 Feb 2018 15:40:38 +0000 (16:40 +0100)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Mon, 5 Mar 2018 11:39:32 +0000 (12:39 +0100)
Omit an extra message for a memory allocation failure in this function.

This issue was detected by using the Coccinelle software.

Signed-off-by: Markus Elfring <elfring@users.sourceforge.net>
Acked-by: Daniel Lezcano <daniel.lezcano@linaro.org>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
drivers/cpuidle/cpuidle-arm.c

index ddee1b6..e07bc7a 100644 (file)
@@ -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;
        }