Commit f5b30c7
mtd: rawnand: stm32_fmc2: 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-10-ruanjinjie@huawei.com1 parent f3b3c47 commit f5b30c7
1 file changed
Lines changed: 2 additions & 5 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1851 | 1851 | | |
1852 | 1852 | | |
1853 | 1853 | | |
1854 | | - | |
1855 | 1854 | | |
1856 | 1855 | | |
1857 | 1856 | | |
| |||
1865 | 1864 | | |
1866 | 1865 | | |
1867 | 1866 | | |
1868 | | - | |
| 1867 | + | |
1869 | 1868 | | |
1870 | | - | |
1871 | | - | |
| 1869 | + | |
1872 | 1870 | | |
1873 | | - | |
1874 | 1871 | | |
1875 | 1872 | | |
1876 | 1873 | | |
| |||
0 commit comments