diff options
author | Kousik Sanagavarapu <five231003@gmail.com> | 2024-08-25 14:18:44 +0530 |
---|---|---|
committer | Nishanth Menon <nm@ti.com> | 2024-08-28 12:18:02 -0500 |
commit | b0289dbf1c952c04ba48b05cc6345381999ef055 (patch) | |
tree | 40f65990d0e7da11e17e08a71c04fd43678e84e7 /lib/crypto/mpi/mpi-internal.h | |
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 <julia.lawall@inria.fr>
Reviewed-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
Signed-off-by: Kousik Sanagavarapu <five231003@gmail.com>
Link: https://lore.kernel.org/r/20240825085714.10736-4-five231003@gmail.com
Signed-off-by: Nishanth Menon <nm@ti.com>
Diffstat (limited to 'lib/crypto/mpi/mpi-internal.h')
0 files changed, 0 insertions, 0 deletions