ALSA: pcm: Use CLASS() for fdget()/fdput()
authorTakashi Iwai <tiwai@suse.de>
Fri, 23 Feb 2024 08:42:38 +0000 (09:42 +0100)
committerTakashi Iwai <tiwai@suse.de>
Fri, 23 Feb 2024 09:57:49 +0000 (10:57 +0100)
commitd90950c6a2658ed8cffb4255a5ddba9c831389fe
tree303b9b82a2ce6df8d1e5fd3b9f17f3db904370a4
parentedbcf872c14690c2894b726b67a871b4d238eea8
ALSA: pcm: Use CLASS() for fdget()/fdput()

Now we have a nice definition of CLASS(fd) that can be applied as a
clean up for the fdget/fdput pairs in snd_pcm_link().

No functional changes, only code refactoring.

Signed-off-by: Takashi Iwai <tiwai@suse.de>
Link: https://lore.kernel.org/r/20240223084241.3361-2-tiwai@suse.de
sound/core/pcm_native.c