Skip to content

Commit 76fc40e

Browse files
Zhen LeiMarc Zyngier
authored andcommitted
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 <[email protected]> Signed-off-by: Marc Zyngier <[email protected]> Link: https://lore.kernel.org/r/[email protected]
1 parent e3f389e commit 76fc40e

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

drivers/irqchip/irq-imx-gpcv2.c

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -228,10 +228,8 @@ static int __init imx_gpcv2_irqchip_init(struct device_node *node,
228228
}
229229

230230
cd = kzalloc(sizeof(struct gpcv2_irqchip_data), GFP_KERNEL);
231-
if (!cd) {
232-
pr_err("%pOF: kzalloc failed!\n", node);
231+
if (!cd)
233232
return -ENOMEM;
234-
}
235233

236234
raw_spin_lock_init(&cd->rlock);
237235

0 commit comments

Comments
 (0)