diff options
author | MarileneGarcia <[email protected]> | 2024-06-01 00:17:13 -0300 |
---|---|---|
committer | Lee Jones <[email protected]> | 2024-06-26 16:56:11 +0100 |
commit | d35625734abea81299f75b3d05c6e2d0d6142b62 (patch) | |
tree | 201e779c23ec92fed5b1d06d292f766721a4f389 /lib/memory-notifier-error-inject.c | |
parent | e786348b247c704081378a40341b4b36866a0395 (diff) |
leds: powernv: Replace of_node_put to __free
Use __free for device_node values, and thus drop calls to
of_node_put.
The variable attribute __free adds a scope based cleanup to
the device node. The goal is to reduce memory management issues
in the kernel code.
The of_node_put calls were removed, and the
for_each_available_child_of_node was replaced to the equivalent
for_each_available_child_of_node_scoped which use the __free.
Suggested-by: Julia Lawall <[email protected]>
Signed-off-by: MarileneGarcia <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Lee Jones <[email protected]>
Diffstat (limited to 'lib/memory-notifier-error-inject.c')
0 files changed, 0 insertions, 0 deletions