irqchip/irq-imx-gpcv2: Remove unnecessary oom message
Fixes scripts/checkpatch.pl warning: WARNING: Possible unnecessary 'out of memory' message Remove it can help us save a bit of memory. Signed-off-by: Zhen Lei <thunder.leizhen@huawei.com> Signed-off-by: Marc Zyngier <maz@kernel.org> Link: https://lore.kernel.org/r/20210609141150.14637-1-thunder.leizhen@huawei.com
This commit is contained in:
Родитель
e3f389ed3a
Коммит
76fc40ec22
|
@ -228,10 +228,8 @@ static int __init imx_gpcv2_irqchip_init(struct device_node *node,
|
||||||
}
|
}
|
||||||
|
|
||||||
cd = kzalloc(sizeof(struct gpcv2_irqchip_data), GFP_KERNEL);
|
cd = kzalloc(sizeof(struct gpcv2_irqchip_data), GFP_KERNEL);
|
||||||
if (!cd) {
|
if (!cd)
|
||||||
pr_err("%pOF: kzalloc failed!\n", node);
|
|
||||||
return -ENOMEM;
|
return -ENOMEM;
|
||||||
}
|
|
||||||
|
|
||||||
raw_spin_lock_init(&cd->rlock);
|
raw_spin_lock_init(&cd->rlock);
|
||||||
|
|
||||||
|
|
Загрузка…
Ссылка в новой задаче