irqchip/mbigen: Simplify code logic with for_each_child_of_node_scoped()
authorZhang Zekun <zhangzekun11@huawei.com>
Thu, 8 Aug 2024 03:15:52 +0000 (11:15 +0800)
committerThomas Gleixner <tglx@linutronix.de>
Thu, 8 Aug 2024 15:15:01 +0000 (17:15 +0200)
commit76bee035c6add05841addc3f31b41cd726b912c4
tree4ac5dfd145b36ab64ff0ea5a018bb894d590eee5
parentb77c6a73e10ae16b19999bebc6ca1413739dfe86
irqchip/mbigen: Simplify code logic with for_each_child_of_node_scoped()

for_each_child_of_node_scoped() handles the device_node automaticlly, so
switching over to it removes the device node cleanups and allows to return
directly from the loop.

Signed-off-by: Zhang Zekun <zhangzekun11@huawei.com>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Link: https://lore.kernel.org/all/20240808031552.3156-1-zhangzekun11@huawei.com
drivers/irqchip/irq-mbigen.c