aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorTakashi Iwai <tiwai@suse.de>2025-08-29 16:52:47 +0200
committerTakashi Iwai <tiwai@suse.de>2025-09-01 13:53:02 +0200
commit3abb538fffc8af73859f16e6e274962d9b53c907 (patch)
tree85d806f02ae5a0d9d8614710d40d87818515b127 /include
parentALSA: es18xx: Use guard() for spin locks (diff)
downloadlinux-3abb538fffc8af73859f16e6e274962d9b53c907.tar.gz
linux-3abb538fffc8af73859f16e6e274962d9b53c907.zip
ALSA: gus: Use guard() for mutex locks
Replace the manual mutex lock/unlock pairs with guard() for code simplification. As replaced with the guard(mutex), no longer used snd_gf1_mem_lock() is dropped, too. Only code refactoring, and no behavior change. Signed-off-by: Takashi Iwai <tiwai@suse.de> Link: https://patch.msgid.link/20250829145300.5460-8-tiwai@suse.de
Diffstat (limited to 'include')
-rw-r--r--include/sound/gus.h1
1 files changed, 0 insertions, 1 deletions
diff --git a/include/sound/gus.h b/include/sound/gus.h
index 1c8fb6c93e50..321ae93625eb 100644
--- a/include/sound/gus.h
+++ b/include/sound/gus.h
@@ -515,7 +515,6 @@ struct _SND_IW_LFO_PROGRAM {
/* gus_mem.c */
-void snd_gf1_mem_lock(struct snd_gf1_mem * alloc, int xup);
int snd_gf1_mem_xfree(struct snd_gf1_mem * alloc, struct snd_gf1_mem_block * block);
struct snd_gf1_mem_block *snd_gf1_mem_alloc(struct snd_gf1_mem * alloc, int owner,
char *name, int size, int w_16,