aboutsummaryrefslogtreecommitdiffstats
path: root/sound/core/timer.c
diff options
context:
space:
mode:
authorTakashi Iwai <[email protected]>2024-02-22 11:15:02 +0000
committerTakashi Iwai <[email protected]>2024-02-23 09:57:30 +0000
commit1052d988226948493eb9730b3424308972eca5f4 (patch)
treea1150bb31123afe45b33cdc093a826a63157abae /sound/core/timer.c
parentALSA: pcm: Use automatic cleanup of kfree() (diff)
downloadkernel-1052d988226948493eb9730b3424308972eca5f4.tar.gz
kernel-1052d988226948493eb9730b3424308972eca5f4.zip
ALSA: control: 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 <[email protected]> Link: https://lore.kernel.org/r/[email protected]
Diffstat (limited to 'sound/core/timer.c')
0 files changed, 0 insertions, 0 deletions