diff options
author | Dmitry Torokhov <[email protected]> | 2024-08-24 22:16:09 -0700 |
---|---|---|
committer | Dmitry Torokhov <[email protected]> | 2024-09-05 22:53:20 -0700 |
commit | 43a365abaf47539f065f6c7890e5433ef10f7381 (patch) | |
tree | 86ee7f912387f280ac564128d6e68b646bffa647 /tools/perf/scripts | |
parent | 934976f61eceab661cce492831448e01d1b89e4b (diff) |
Input: gpio-keys - switch to using cleanup functions
Start using __free() and guard() primitives to simplify the code
and error handling. This makes the code more compact and error
handling more robust by ensuring that locks are released in all
code paths when control leaves critical section and all allocated
memory is freed.
Reviewed-by: Hans de Goede <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Dmitry Torokhov <[email protected]>
Diffstat (limited to 'tools/perf/scripts')
0 files changed, 0 insertions, 0 deletions