Skip to contentSkip to conversation

irqchip/exynos-combiner: remove unnecessary oom message

PATCH Applied Zhen Lei 3 participants 3 messages Jun 9, 2021 – Jun 11, 2021

Subsystems (2)
lore
Share & tools
lore

Zhen Lei

author
#0 lore raw

PATCH 1/1 irqchip/exynos-combiner: 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.

---
 drivers/irqchip/exynos-combiner.c | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)
drivers/irqchip/exynos-combiner.c +1 -3
index 14106126cbf3262..552aa04ff063123 100644
@@ -177,10 +177,8 @@ static void __init combiner_init(void __iomem *combiner_base,
 	nr_irq = max_nr * IRQ_IN_COMBINER;
 
 	combiner_data = kcalloc(max_nr, sizeof (*combiner_data), GFP_KERNEL);
-	if (!combiner_data) {
-		pr_warn("%s: could not allocate combiner data\n", __func__);
+	if (!combiner_data)
 		return;
-	}
 
 	combiner_irq_domain = irq_domain_add_linear(np, nr_irq,
 				&combiner_irq_domain_ops, combiner_data);
Signature · 1 line
2.26.0.106.g9fadedd
Reviewed-by on v1 1/1
#1 lore raw
Quoted 17 lines · Zhen Lei

Fixes scripts/checkpatch.pl warning:
WARNING: Possible unnecessary 'out of memory' message

Remove it can help us save a bit of memory.

---
 drivers/irqchip/exynos-combiner.c | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)
drivers/irqchip/exynos-combiner.c +0 -0
index 14106126cbf3262..552aa04ff063123 100644
@@ -177,10 +177,8 @@ static void __init combiner_init(void __iomem *combiner_base,
 	nr_irq = max_nr * IRQ_IN_COMBINER;

drivers/irqchip/exynos-combiner.c static void __init combiner_init(void __iomem *combiner_base, · line 184

Quoted 10 lines
drivers/irqchip/exynos-combiner.c +1 -3
 
 	combiner_data = kcalloc(max_nr, sizeof (*combiner_data), GFP_KERNEL);
-	if (!combiner_data) {
-		pr_warn("%s: could not allocate combiner data\n", __func__);
+	if (!combiner_data)
 		return;
-	}
 
 	combiner_irq_domain = irq_domain_add_linear(np, nr_irq,
 				&combiner_irq_domain_ops, combiner_data);

Best regards,
Krzysztof

merge bot Applied
#2 lore raw

[irqchip: irq/irqchip-next] irqchip/exynos-combiner: Remove unnecessary oom message

In reply to Zhen Lei
The following commit has been merged into the irq/irqchip-next branch of irqchip:

The following commit has been merged into the irq/irqchip-next branch of irqchip:

Commit-ID:     da30e6688dd64fabc3746e00e4a9b6f926efd5ca
Gitweb:        https://git.kernel.org/pub/scm/linux/kernel/git/maz/arm-platforms/da30e6688dd64fabc3746e00e4a9b6f926efd5ca
Author:        Zhen Lei <[email protected]>
AuthorDate:    Wed, 09 Jun 2021 22:03:35 +08:00
Committer:     Marc Zyngier <[email protected]>
CommitterDate: Fri, 11 Jun 2021 14:19:27 +01:00

irqchip/exynos-combiner: 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.

---
 drivers/irqchip/exynos-combiner.c | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)
drivers/irqchip/exynos-combiner.c +1 -3
index 0b85d9a..256ed73 100644
@@ -179,10 +179,8 @@ static void __init combiner_init(void __iomem *combiner_base,
 	nr_irq = max_nr * IRQ_IN_COMBINER;
 
 	combiner_data = kcalloc(max_nr, sizeof (*combiner_data), GFP_KERNEL);
-	if (!combiner_data) {
-		pr_warn("%s: could not allocate combiner data\n", __func__);
+	if (!combiner_data)
 		return;
-	}
 
 	combiner_irq_domain = irq_domain_add_linear(np, nr_irq,
 				&combiner_irq_domain_ops, combiner_data);