mirror of https://github.com/torvalds/linux.git
irqchip: Drop leftover brackets
Drop some unnecessary brackets in platform_irqchip_probe() mistakenly
left by commit 9322d1915f ("irqchip: Plug a OF node reference leak in
platform_irqchip_probe()").
Signed-off-by: Johan Hovold <johan@kernel.org>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Reviewed-by: Geert Uytterhoeven <geert+renesas@glider.be>
This commit is contained in:
parent
9b685058ca
commit
3540d99c03
|
|
@ -38,9 +38,8 @@ int platform_irqchip_probe(struct platform_device *pdev)
|
|||
struct device_node *par_np __free(device_node) = of_irq_find_parent(np);
|
||||
of_irq_init_cb_t irq_init_cb = of_device_get_match_data(&pdev->dev);
|
||||
|
||||
if (!irq_init_cb) {
|
||||
if (!irq_init_cb)
|
||||
return -EINVAL;
|
||||
}
|
||||
|
||||
if (par_np == np)
|
||||
par_np = NULL;
|
||||
|
|
@ -53,9 +52,8 @@ int platform_irqchip_probe(struct platform_device *pdev)
|
|||
* interrupt controller. The actual initialization callback of this
|
||||
* interrupt controller can check for specific domains as necessary.
|
||||
*/
|
||||
if (par_np && !irq_find_matching_host(par_np, DOMAIN_BUS_ANY)) {
|
||||
if (par_np && !irq_find_matching_host(par_np, DOMAIN_BUS_ANY))
|
||||
return -EPROBE_DEFER;
|
||||
}
|
||||
|
||||
return irq_init_cb(np, par_np);
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue