ALSA: pcm: oss: Use guard() for spin locks
PATCH 1/1 ALSA: pcm: oss: Use guard() for spin locks
Clean up the code using guard() for spin locks.
Merely code refactoring, and no behavior change.
Signed-off-by Takashi Iwai <[email protected]>
--- sound/core/oss/pcm_oss.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-)
sound/core/oss/pcm_oss.c +1 -2
@@ -2002,9 +2002,8 @@ static int snd_pcm_oss_set_fragment(struct snd_pcm_oss_file *pcm_oss_file, unsigstatic int snd_pcm_oss_nonblock (struct file * file) { -spin_lock (&file->f_lock); +guard (spinlock)(&file->f_lock); file->f_flags |=O_NONBLOCK ; -spin_unlock (&file->f_lock);return 0 ; }
Signature · 1 line
2.50.1