Commit b59fdc7
mtd: rawnand: sunxi: Use for_each_child_of_node_scoped()
Avoids the need for manual cleanup of_node_put() in early exits
from the loop.
Signed-off-by: Jinjie Ruan <ruanjinjie@huawei.com>
Signed-off-by: Miquel Raynal <miquel.raynal@bootlin.com>
Link: https://lore.kernel.org/linux-mtd/20240826094328.2991664-11-ruanjinjie@huawei.com1 parent f5b30c7 commit b59fdc7
1 file changed
Lines changed: 1 addition & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2025 | 2025 | | |
2026 | 2026 | | |
2027 | 2027 | | |
2028 | | - | |
2029 | 2028 | | |
2030 | 2029 | | |
2031 | | - | |
| 2030 | + | |
2032 | 2031 | | |
2033 | 2032 | | |
2034 | | - | |
2035 | 2033 | | |
2036 | 2034 | | |
2037 | 2035 | | |
| |||
0 commit comments