Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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

authored by

Zhen Lei and committed by
Marc Zyngier
da30e668 8124c8a6

+1 -3
+1 -3
drivers/irqchip/exynos-combiner.c
··· 179 179 nr_irq = max_nr * IRQ_IN_COMBINER; 180 180 181 181 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) 184 183 return; 185 - } 186 184 187 185 combiner_irq_domain = irq_domain_add_linear(np, nr_irq, 188 186 &combiner_irq_domain_ops, combiner_data);