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

irqchip/renesas-rzg2l: Remove dev_err_probe() if error is -ENOMEM

The dev_err_probe() doesn't do anything when error is '-ENOMEM'.

Therefore, remove the useless call to dev_err_probe(), and just return the
value instead.

Signed-off-by: Xichao Zhao <zhao.xichao@vivo.com>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Link: https://lore.kernel.org/all/20250821093845.564496-1-zhao.xichao@vivo.com

authored by

Xichao Zhao and committed by
Thomas Gleixner
d36bf356 40c26230

+1 -1
+1 -1
drivers/irqchip/irq-renesas-rzg2l.c
··· 578 578 &rzg2l_irqc_domain_ops, rzg2l_irqc_data); 579 579 if (!irq_domain) { 580 580 pm_runtime_put(dev); 581 - return dev_err_probe(dev, -ENOMEM, "failed to add irq domain\n"); 581 + return -ENOMEM; 582 582 } 583 583 584 584 register_syscore_ops(&rzg2l_irqc_syscore_ops);