diff options
author | 2024-02-22 12:15:03 +0100 | |
---|---|---|
committer | 2024-02-23 10:57:30 +0100 | |
commit | 9b02221422a55e834469fdc91dc4d5147f5a1fb9 (patch) | |
tree | 1a78f208566232824772ef74d8fe52cc7b9426ca /tools/perf/scripts/python/stackcollapse.py | |
parent | ALSA: control: Use automatic cleanup of kfree() (diff) | |
download | wireguard-linux-9b02221422a55e834469fdc91dc4d5147f5a1fb9.tar.xz wireguard-linux-9b02221422a55e834469fdc91dc4d5147f5a1fb9.zip |
ALSA: compress_offload: Use automatic cleanup of kfree()
There are common patterns where a temporary buffer is allocated and
freed at the exit, and those can be simplified with the recent cleanup
mechanism via __free(kfree).
A caveat is that some allocations are memdup_user() and they return an
error pointer instead of NULL. Those need special cares and the value
has to be cleared with no_free_ptr() at the allocation error path.
Other than that, the conversions are straightforward.
No functional changes, only code refactoring.
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Link: https://lore.kernel.org/r/20240222111509.28390-4-tiwai@suse.de
Diffstat (limited to 'tools/perf/scripts/python/stackcollapse.py')
0 files changed, 0 insertions, 0 deletions