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

irqchip/sun4i: 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/20210609141428.14737-1-thunder.leizhen@huawei.com

authored by

Zhen Lei and committed by
Marc Zyngier
75768e39 76fc40ec

+2 -6
+2 -6
drivers/irqchip/irq-sun4i.c
··· 147 147 struct device_node *parent) 148 148 { 149 149 irq_ic_data = kzalloc(sizeof(struct sun4i_irq_chip_data), GFP_KERNEL); 150 - if (!irq_ic_data) { 151 - pr_err("kzalloc failed!\n"); 150 + if (!irq_ic_data) 152 151 return -ENOMEM; 153 - } 154 152 155 153 irq_ic_data->enable_reg_offset = SUN4I_IRQ_ENABLE_REG_OFFSET; 156 154 irq_ic_data->mask_reg_offset = SUN4I_IRQ_MASK_REG_OFFSET; ··· 162 164 struct device_node *parent) 163 165 { 164 166 irq_ic_data = kzalloc(sizeof(struct sun4i_irq_chip_data), GFP_KERNEL); 165 - if (!irq_ic_data) { 166 - pr_err("kzalloc failed!\n"); 167 + if (!irq_ic_data) 167 168 return -ENOMEM; 168 - } 169 169 170 170 irq_ic_data->enable_reg_offset = SUNIV_IRQ_ENABLE_REG_OFFSET; 171 171 irq_ic_data->mask_reg_offset = SUNIV_IRQ_MASK_REG_OFFSET;