Commit c276557d authored by Markus Elfring's avatar Markus Elfring Committed by Robert Jarzmik

ARM: pxa: Delete an error message for a failed memory allocation in pxa_pm_init()

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

This issue was detected by using the Coccinelle software.

Link: http://events.linuxfoundation.org/sites/events/files/slides/LCJ16-Refactor_Strings-WSang_0.pdfSigned-off-by: default avatarMarkus Elfring <elfring@users.sourceforge.net>
Signed-off-by: default avatarRobert Jarzmik <robert.jarzmik@free.fr>
parent 7ade445c
...@@ -107,10 +107,8 @@ static int __init pxa_pm_init(void) ...@@ -107,10 +107,8 @@ static int __init pxa_pm_init(void)
sleep_save = kmalloc_array(pxa_cpu_pm_fns->save_count, sleep_save = kmalloc_array(pxa_cpu_pm_fns->save_count,
sizeof(*sleep_save), sizeof(*sleep_save),
GFP_KERNEL); GFP_KERNEL);
if (!sleep_save) { if (!sleep_save)
printk(KERN_ERR "failed to alloc memory for pm save\n");
return -ENOMEM; return -ENOMEM;
}
suspend_set_ops(&pxa_pm_ops); suspend_set_ops(&pxa_pm_ops);
return 0; return 0;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment