Commit 9f6caa3
dmaengine: mv_xor: switch to for_each_child_of_node_scoped()
Introduce the scoped variant of the loop to automatically release the
child node when it goes out of scope, which is more robust than the
non-scoped variant, and accounts for new early exits that could be added
in the future.
Signed-off-by: Javier Carrasco <javier.carrasco.cruz@gmail.com>
Link: https://lore.kernel.org/r/20241011-dma_mv_xor_of_node_put-v1-2-3c2de819f463@gmail.com
Signed-off-by: Vinod Koul <vkoul@kernel.org>1 parent 36d8cbd commit 9f6caa3
1 file changed
Lines changed: 1 addition & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1369 | 1369 | | |
1370 | 1370 | | |
1371 | 1371 | | |
1372 | | - | |
1373 | 1372 | | |
1374 | 1373 | | |
1375 | | - | |
| 1374 | + | |
1376 | 1375 | | |
1377 | 1376 | | |
1378 | 1377 | | |
| |||
1388 | 1387 | | |
1389 | 1388 | | |
1390 | 1389 | | |
1391 | | - | |
1392 | 1390 | | |
1393 | 1391 | | |
1394 | 1392 | | |
| |||
1397 | 1395 | | |
1398 | 1396 | | |
1399 | 1397 | | |
1400 | | - | |
1401 | 1398 | | |
1402 | 1399 | | |
1403 | 1400 | | |
| |||
0 commit comments