Browse Source

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: 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>
Markus Elfring 7 years ago
parent
commit
bda4d21b6e
1 changed files with 0 additions and 1 deletions
  1. 0 1
      drivers/cpuidle/cpuidle-arm.c

+ 0 - 1
drivers/cpuidle/cpuidle-arm.c

@@ -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;
 	}