Commit e8b44f32 authored by Markus Elfring's avatar Markus Elfring Committed by Sudeep Holla

ARM: vexpress/spc: Delete an error message for a failed memory allocation

Omit extra messages for a memory allocation failure in these functions.

This issue was detected by using the Coccinelle software.
Signed-off-by: default avatarMarkus Elfring <elfring@users.sourceforge.net>
Signed-off-by: default avatarSudeep Holla <sudeep.holla@arm.com>
parent 2bd6bf03
...@@ -451,10 +451,8 @@ int __init ve_spc_init(void __iomem *baseaddr, u32 a15_clusid, int irq) ...@@ -451,10 +451,8 @@ int __init ve_spc_init(void __iomem *baseaddr, u32 a15_clusid, int irq)
{ {
int ret; int ret;
info = kzalloc(sizeof(*info), GFP_KERNEL); info = kzalloc(sizeof(*info), GFP_KERNEL);
if (!info) { if (!info)
pr_err(SPCLOG "unable to allocate mem\n");
return -ENOMEM; return -ENOMEM;
}
info->baseaddr = baseaddr; info->baseaddr = baseaddr;
info->a15_clusid = a15_clusid; info->a15_clusid = a15_clusid;
...@@ -535,10 +533,8 @@ static struct clk *ve_spc_clk_register(struct device *cpu_dev) ...@@ -535,10 +533,8 @@ static struct clk *ve_spc_clk_register(struct device *cpu_dev)
struct clk_spc *spc; struct clk_spc *spc;
spc = kzalloc(sizeof(*spc), GFP_KERNEL); spc = kzalloc(sizeof(*spc), GFP_KERNEL);
if (!spc) { if (!spc)
pr_err("could not allocate spc clk\n");
return ERR_PTR(-ENOMEM); return ERR_PTR(-ENOMEM);
}
spc->hw.init = &init; spc->hw.init = &init;
spc->cluster = topology_physical_package_id(cpu_dev->id); spc->cluster = topology_physical_package_id(cpu_dev->id);
......
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