diff options
author | 2024-04-18 00:05:05 +0000 | |
---|---|---|
committer | 2024-04-24 10:27:16 +0900 | |
commit | abba116f601800a0c74b9a9c2c91e2eebca791c1 (patch) | |
tree | b4050fdb2dd4b78678e7531f0b3da34a6a3efb4a /tools/perf/scripts/python/export-to-postgresql.py | |
parent | spi: mux: Fix master controller settings after mux select (diff) | |
download | wireguard-linux-abba116f601800a0c74b9a9c2c91e2eebca791c1.tar.xz wireguard-linux-abba116f601800a0c74b9a9c2c91e2eebca791c1.zip |
spi: spi-s3c64xx.c: Remove of_node_put for auto cleanup
Use the scope based of_node_put() cleanup in s3c64xx_spi_csinfo to
automatically release the device node with the __free() cleanup handler
Initialize data_np at the point of declaration for clarity of scope.
This change reduces the risk of memory leaks and simplifies the code by
removing manual node put call.
Suggested-by: Julia Lawall <julia.lawall@inria.fr>
Signed-off-by: Shivani Gupta <shivani07g@gmail.com>
Link: https://lore.kernel.org/r/20240418000505.731724-1-shivani07g@gmail.com
Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions