]> git.ipfire.org Git - thirdparty/linux.git/commit
ALSA: seq: core: Use automatic cleanup of kfree()
authorTakashi Iwai <tiwai@suse.de>
Thu, 22 Feb 2024 11:15:09 +0000 (12:15 +0100)
committerTakashi Iwai <tiwai@suse.de>
Fri, 23 Feb 2024 09:57:31 +0000 (10:57 +0100)
commitedbcf872c14690c2894b726b67a871b4d238eea8
tree5c113a90031600f987beb43aa9e687404ae554af
parent316e38ef776663a7a4c5d76438c42c948c574df4
ALSA: seq: core: 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).

No functional changes, only code refactoring.

Signed-off-by: Takashi Iwai <tiwai@suse.de>
Link: https://lore.kernel.org/r/20240222111509.28390-10-tiwai@suse.de
sound/core/seq/seq_compat.c
sound/core/seq/seq_midi.c