mirror of https://gitee.com/openkylin/linux.git
irqchip/exynos-combiner: 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> Reviewed-by: Krzysztof Kozlowski <krzysztof.kozlowski@canonical.com> Signed-off-by: Marc Zyngier <maz@kernel.org> Link: https://lore.kernel.org/r/20210609140335.14425-1-thunder.leizhen@huawei.com
This commit is contained in:
parent
8124c8a6b3
commit
da30e6688d
|
@ -179,10 +179,8 @@ static void __init combiner_init(void __iomem *combiner_base,
|
||||||
nr_irq = max_nr * IRQ_IN_COMBINER;
|
nr_irq = max_nr * IRQ_IN_COMBINER;
|
||||||
|
|
||||||
combiner_data = kcalloc(max_nr, sizeof (*combiner_data), GFP_KERNEL);
|
combiner_data = kcalloc(max_nr, sizeof (*combiner_data), GFP_KERNEL);
|
||||||
if (!combiner_data) {
|
if (!combiner_data)
|
||||||
pr_warn("%s: could not allocate combiner data\n", __func__);
|
|
||||||
return;
|
return;
|
||||||
}
|
|
||||||
|
|
||||||
combiner_irq_domain = irq_domain_add_linear(np, nr_irq,
|
combiner_irq_domain = irq_domain_add_linear(np, nr_irq,
|
||||||
&combiner_irq_domain_ops, combiner_data);
|
&combiner_irq_domain_ops, combiner_data);
|
||||||
|
|
Loading…
Reference in New Issue