Skip to content

Commit ee1afac

Browse files
Dan Carpentertiwai
authored andcommitted
ALSA: oss: delete self assignment
No need to assign "uctl" to itself. Delete it. Fixes: 55f98ec ("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>
1 parent e347430 commit ee1afac

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

sound/core/oss/mixer_oss.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -792,7 +792,7 @@ static int snd_mixer_oss_get_recsrc2(struct snd_mixer_oss_file *fmixer, unsigned
792792
struct snd_ctl_elem_info *uinfo __free(kfree) =
793793
kzalloc(sizeof(*uinfo), GFP_KERNEL);
794794
struct snd_ctl_elem_value *uctl __free(kfree) =
795-
uctl = kzalloc(sizeof(*uctl), GFP_KERNEL);
795+
kzalloc(sizeof(*uctl), GFP_KERNEL);
796796
if (uinfo == NULL || uctl == NULL)
797797
return -ENOMEM;
798798
guard(rwsem_read)(&card->controls_rwsem);

0 commit comments

Comments
 (0)