Skip to content

Commit da30e66

Browse files
Zhen LeiMarc Zyngier
authored andcommitted
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 <[email protected]> Reviewed-by: Krzysztof Kozlowski <[email protected]> Signed-off-by: Marc Zyngier <[email protected]> Link: https://lore.kernel.org/r/[email protected]
1 parent 8124c8a commit da30e66

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

drivers/irqchip/exynos-combiner.c

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -179,10 +179,8 @@ static void __init combiner_init(void __iomem *combiner_base,
179179
nr_irq = max_nr * IRQ_IN_COMBINER;
180180

181181
combiner_data = kcalloc(max_nr, sizeof (*combiner_data), GFP_KERNEL);
182-
if (!combiner_data) {
183-
pr_warn("%s: could not allocate combiner data\n", __func__);
182+
if (!combiner_data)
184183
return;
185-
}
186184

187185
combiner_irq_domain = irq_domain_add_linear(np, nr_irq,
188186
&combiner_irq_domain_ops, combiner_data);

0 commit comments

Comments
 (0)