irqchip/renesas-rzg2l: Remove dev_err_probe() if error is -ENOMEM
authorXichao Zhao <zhao.xichao@vivo.com>
Thu, 21 Aug 2025 09:38:45 +0000 (17:38 +0800)
committerThomas Gleixner <tglx@linutronix.de>
Wed, 3 Sep 2025 12:12:55 +0000 (14:12 +0200)
commitd36bf356068cdb5499b9bc458db9149c0fd938a2
treee36dbe4d4aa151da35e0400ac189777f67375dae
parent40c26230a1bfdf46f93e4136dbb96d093744c80d
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
drivers/irqchip/irq-renesas-rzg2l.c