diff options
author | Kousik Sanagavarapu <[email protected]> | 2024-08-25 14:18:44 +0530 |
---|---|---|
committer | Nishanth Menon <[email protected]> | 2024-08-28 12:18:02 -0500 |
commit | b0289dbf1c952c04ba48b05cc6345381999ef055 (patch) | |
tree | 40f65990d0e7da11e17e08a71c04fd43678e84e7 /tools/perf/util/scripting-engines/trace-event-python.c | |
parent | df70c0b4828bb85f1370453288a0a63d7618decf (diff) |
soc: ti: knav_qmss_queue: do device_node auto cleanup
Use scope based cleanup, instead of manual of_node_put() calls, which
automatically free()s "struct device_node".
While at it, refactor the code from knav_queue_probe() into the separate
functions to make auto cleanup look more neat.
Doing the cleanup this way has the advantage of reducing the chance of
memory leaks in case we need to read from new OF nodes in the future
when we probe.
Suggested-by: Julia Lawall <[email protected]>
Reviewed-by: Jonathan Cameron <[email protected]>
Signed-off-by: Kousik Sanagavarapu <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Nishanth Menon <[email protected]>
Diffstat (limited to 'tools/perf/util/scripting-engines/trace-event-python.c')
0 files changed, 0 insertions, 0 deletions