ALSA: seq: oss: Use automatic cleanup of kfree()
authorTakashi Iwai <tiwai@suse.de>
Thu, 22 Feb 2024 11:15:06 +0000 (12:15 +0100)
committerTakashi Iwai <tiwai@suse.de>
Fri, 23 Feb 2024 09:57:31 +0000 (10:57 +0100)
commit1c4025d4ea0cabe05b2425889eed9298c713c771
tree7c8d78370fe560a403c7f365621048a18ae53392
parentfb9e197f3f27133f9137c6c0eb7352529a272419
ALSA: seq: oss: 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-7-tiwai@suse.de
sound/core/seq/oss/seq_oss_init.c
sound/core/seq/oss/seq_oss_midi.c