| From a2dbfd7b612c01a61865e7adac80ea53bd9a01e7 Mon Sep 17 00:00:00 2001 |
| From: Sasha Levin <sashal@kernel.org> |
| Date: Fri, 6 Feb 2026 16:41:47 +0300 |
| Subject: ALSA: oss: delete self assignment |
| |
| From: Dan Carpenter <dan.carpenter@linaro.org> |
| |
| [ Upstream commit ee1afacc356c84bba4b89e0655ffdcfa84d4f714 ] |
| |
| 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> |
| Signed-off-by: Sasha Levin <sashal@kernel.org> |
| --- |
| sound/core/oss/mixer_oss.c | 2 +- |
| 1 file changed, 1 insertion(+), 1 deletion(-) |
| |
| diff --git a/sound/core/oss/mixer_oss.c b/sound/core/oss/mixer_oss.c |
| index 69422ab2d8086..8d2d46d03301b 100644 |
| --- 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); |
| -- |
| 2.51.0 |
| |