irqchip/irq-imx-gpcv2: Remove unnecessary oom message
authorZhen Lei <thunder.leizhen@huawei.com>
Wed, 9 Jun 2021 14:11:50 +0000 (22:11 +0800)
committerMarc Zyngier <maz@kernel.org>
Fri, 11 Jun 2021 13:19:47 +0000 (14:19 +0100)
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
drivers/irqchip/irq-imx-gpcv2.c

index 7031ef4..5b5a365 100644 (file)
@@ -228,10 +228,8 @@ static int __init imx_gpcv2_irqchip_init(struct device_node *node,
        }
 
        cd = kzalloc(sizeof(struct gpcv2_irqchip_data), GFP_KERNEL);
-       if (!cd) {
-               pr_err("%pOF: kzalloc failed!\n", node);
+       if (!cd)
                return -ENOMEM;
-       }
 
        raw_spin_lock_init(&cd->rlock);