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

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

authored by

Zhen Lei and committed by
Marc Zyngier
76fc40ec e3f389ed

+1 -3
+1 -3
drivers/irqchip/irq-imx-gpcv2.c
··· 228 228 } 229 229 230 230 cd = kzalloc(sizeof(struct gpcv2_irqchip_data), GFP_KERNEL); 231 - if (!cd) { 232 - pr_err("%pOF: kzalloc failed!\n", node); 231 + if (!cd) 233 232 return -ENOMEM; 234 - } 235 233 236 234 raw_spin_lock_init(&cd->rlock); 237 235