ALSA: seq: virmidi: Use automatic cleanup of kfree()
authorTakashi Iwai <tiwai@suse.de>
Thu, 22 Feb 2024 11:15:07 +0000 (12:15 +0100)
committerTakashi Iwai <tiwai@suse.de>
Fri, 23 Feb 2024 09:57:31 +0000 (10:57 +0100)
commit5d04ad53e54c1513a90f44367d5712e984ba579b
tree8c5c2caa8a1e1716810ede0477b9c021324fc89f
parent1c4025d4ea0cabe05b2425889eed9298c713c771
ALSA: seq: virmidi: 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-8-tiwai@suse.de
sound/core/seq/seq_virmidi.c