projects
/
linux-2.6-microblaze.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
40c2623
)
irqchip/renesas-rzg2l: Remove dev_err_probe() if error is -ENOMEM
author
Xichao Zhao
<zhao.xichao@vivo.com>
Thu, 21 Aug 2025 09:38:45 +0000
(17:38 +0800)
committer
Thomas Gleixner
<tglx@linutronix.de>
Wed, 3 Sep 2025 12:12:55 +0000
(14:12 +0200)
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
patch
|
blob
|
history
diff --git
a/drivers/irqchip/irq-renesas-rzg2l.c
b/drivers/irqchip/irq-renesas-rzg2l.c
index
360d886
..
2a54ade
100644
(file)
--- a/
drivers/irqchip/irq-renesas-rzg2l.c
+++ b/
drivers/irqchip/irq-renesas-rzg2l.c
@@
-578,7
+578,7
@@
static int rzg2l_irqc_common_init(struct device_node *node, struct device_node *
&rzg2l_irqc_domain_ops, rzg2l_irqc_data);
if (!irq_domain) {
pm_runtime_put(dev);
- return
dev_err_probe(dev, -ENOMEM, "failed to add irq domain\n")
;
+ return
-ENOMEM
;
}
register_syscore_ops(&rzg2l_irqc_syscore_ops);