Commit 12b0e30
gpio: acpi: switch to device_for_each_child_node_scoped()
Switch to device_for_each_child_node_scoped() to simplify the code by
removing the need for a call to fwnode_handle_put() in the error path.
This also prevents possible memory leaks if new error paths are added
without the required call to fwnode_handle_put().
Signed-off-by: Javier Carrasco <[email protected]>
Signed-off-by: Andy Shevchenko <[email protected]>1 parent 9852d85 commit 12b0e30
1 file changed
+1
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1315 | 1315 | | |
1316 | 1316 | | |
1317 | 1317 | | |
1318 | | - | |
1319 | 1318 | | |
1320 | | - | |
| 1319 | + | |
1321 | 1320 | | |
1322 | 1321 | | |
1323 | 1322 | | |
| |||
1335 | 1334 | | |
1336 | 1335 | | |
1337 | 1336 | | |
1338 | | - | |
1339 | 1337 | | |
1340 | 1338 | | |
1341 | 1339 | | |
| |||
0 commit comments