aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux/bcm63xx/patches-5.4/325-irqchip-bcm6345-external-fix-base-uninitialized.patch
blob: 45b5118a4a616922982193810a003666a1b2778f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
--- a/drivers/irqchip/irq-bcm6345-ext.c
+++ b/drivers/irqchip/irq-bcm6345-ext.c
@@ -271,21 +271,19 @@ static int __init bcm6345_ext_intc_of_in
 
 	for (i = 0; i < num_irqs; i++) {
 		irqs[i] = irq_of_parse_and_map(node, i);
-		if (!irqs[i]) {
-			ret = -ENOMEM;
-			goto out_unmap;
-		}
+		if (!irqs[i])
+			return -ENOMEM;
 	}
 
 	base = of_iomap(node, 0);
 	if (!base)
-		goto out_unmap;
+		return -ENXIO;
 
 	ret = __bcm6345_ext_intc_init(node, num_irqs, irqs, base, shift,
 				      toggle_clear_on_ack);
 	if (!ret)
 		return 0;
-out_unmap:
+
 	iounmap(base);
 
 	for (i = 0; i < num_irqs; i++)