projects
/
linux-2.6-microblaze.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e347430
)
ALSA: oss: delete self assignment
author
Dan Carpenter
<dan.carpenter@linaro.org>
Fri, 6 Feb 2026 13:41:47 +0000
(16:41 +0300)
committer
Takashi Iwai
<tiwai@suse.de>
Fri, 6 Feb 2026 13:44:41 +0000
(14:44 +0100)
No need to assign "uctl" to itself. Delete it.
Fixes:
55f98ece9939
("ALSA: oss: Relax __free() variable declarations")
Signed-off-by: Dan Carpenter <dan.carpenter@linaro.org>
Link:
https://patch.msgid.link/aYXvm2YoV2yRimhk@stanley.mountain
Signed-off-by: Takashi Iwai <tiwai@suse.de>
sound/core/oss/mixer_oss.c
patch
|
blob
|
history
diff --git
a/sound/core/oss/mixer_oss.c
b/sound/core/oss/mixer_oss.c
index
69422ab
..
8d2d46d
100644
(file)
--- a/
sound/core/oss/mixer_oss.c
+++ b/
sound/core/oss/mixer_oss.c
@@
-792,7
+792,7
@@
static int snd_mixer_oss_get_recsrc2(struct snd_mixer_oss_file *fmixer, unsigned
struct snd_ctl_elem_info *uinfo __free(kfree) =
kzalloc(sizeof(*uinfo), GFP_KERNEL);
struct snd_ctl_elem_value *uctl __free(kfree) =
-
uctl =
kzalloc(sizeof(*uctl), GFP_KERNEL);
+ kzalloc(sizeof(*uctl), GFP_KERNEL);
if (uinfo == NULL || uctl == NULL)
return -ENOMEM;
guard(rwsem_read)(&card->controls_rwsem);