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

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

authored by

Zhen Lei and committed by
Marc Zyngier
e3f389ed 944a1a17

+2 -6
+2 -6
drivers/irqchip/irq-imgpdc.c
··· 316 316 317 317 /* Allocate driver data */ 318 318 priv = devm_kzalloc(&pdev->dev, sizeof(*priv), GFP_KERNEL); 319 - if (!priv) { 320 - dev_err(&pdev->dev, "cannot allocate device data\n"); 319 + if (!priv) 321 320 return -ENOMEM; 322 - } 323 321 raw_spin_lock_init(&priv->lock); 324 322 platform_set_drvdata(pdev, priv); 325 323 ··· 354 356 /* Get peripheral IRQ numbers */ 355 357 priv->perip_irqs = devm_kcalloc(&pdev->dev, 4, priv->nr_perips, 356 358 GFP_KERNEL); 357 - if (!priv->perip_irqs) { 358 - dev_err(&pdev->dev, "cannot allocate perip IRQ list\n"); 359 + if (!priv->perip_irqs) 359 360 return -ENOMEM; 360 - } 361 361 for (i = 0; i < priv->nr_perips; ++i) { 362 362 irq = platform_get_irq(pdev, 1 + i); 363 363 if (irq < 0)