diff options
author | Shresth Prasad <[email protected]> | 2024-05-18 17:10:53 +0530 |
---|---|---|
committer | Greg Kroah-Hartman <[email protected]> | 2024-06-04 14:00:16 +0200 |
commit | 0bb17fdc6735517c2127ba058126dd104cb3ee30 (patch) | |
tree | d63bd75536fb789d0743d24a668dc7a94669b6c7 /tools/perf/scripts/python/export-to-sqlite.py | |
parent | c3f38fa61af77b49866b006939479069cd451173 (diff) |
tty: sunsu: Simplify device_node cleanup by using __free
Add `__free` function attribute to `ap` and `match` pointer
initialisations which ensure that the pointers are freed as soon as they
go out of scope, thus removing the need to manually free them using
`of_node_put`.
This also removes the need for the `goto` statement and the `rc`
variable.
Suggested-by: Julia Lawall <[email protected]>
Signed-off-by: Shresth Prasad <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Greg Kroah-Hartman <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/export-to-sqlite.py')
0 files changed, 0 insertions, 0 deletions